Pārlūkot izejas kodu

Fix type of 'what' parameter to _Notifications In C# usage example (#11008)

* Fix type of 'what' parameter to _Notifications In C# usage example
brian ridley 1 mēnesi atpakaļ
vecāks
revīzija
8db6545d46
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      tutorials/best_practices/godot_notifications.rst

+ 2 - 2
tutorials/best_practices/godot_notifications.rst

@@ -360,9 +360,9 @@ nodes that one might create at runtime.
             return _parentCache.HasUserSignal("InteractedWith");
         }
 
-        public void _Notification(int what)
+        public override void _Notification(int what)
         {
-            switch (what)
+            switch ((long)what)
             {
                 case NotificationParented:
                     _parentCache = GetParent();