Преглед на файлове

Docs - Fixed input action C# issue

The `SetAction` and `SetPressed` are internal methods and can't be invoked directly outside of that assembly. However, the `Action` and `Pressed` property setters invoke them instead.
Srđan Jokić преди 1 година
родител
ревизия
14e03b981f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      tutorials/inputs/inputevent.rst

+ 2 - 2
tutorials/inputs/inputevent.rst

@@ -234,8 +234,8 @@ The Input singleton has a method for this:
 
     var ev = new InputEventAction();
     // Set as ui_left, pressed.
-    ev.SetAction("ui_left");
-    ev.SetPressed(true);
+    ev.Action = "ui_left";
+    ev.Pressed = true;
     // Feedback.
     Input.ParseInputEvent(ev);