mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 20:22:59 +00:00
Rename instance()->instantiate() when it's a verb
This commit is contained in:
@@ -288,7 +288,7 @@ void TouchScreenButton::_press(int p_finger_pressed) {
|
||||
if (action != StringName()) {
|
||||
Input::get_singleton()->action_press(action);
|
||||
Ref<InputEventAction> iea;
|
||||
iea.instance();
|
||||
iea.instantiate();
|
||||
iea->set_action(action);
|
||||
iea->set_pressed(true);
|
||||
get_viewport()->input(iea, true);
|
||||
@@ -305,7 +305,7 @@ void TouchScreenButton::_release(bool p_exiting_tree) {
|
||||
Input::get_singleton()->action_release(action);
|
||||
if (!p_exiting_tree) {
|
||||
Ref<InputEventAction> iea;
|
||||
iea.instance();
|
||||
iea.instantiate();
|
||||
iea->set_action(action);
|
||||
iea->set_pressed(false);
|
||||
get_viewport()->input(iea, true);
|
||||
|
||||
Reference in New Issue
Block a user