Browse Source

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 month ago
parent
commit
8db6545d46
1 changed files with 2 additions and 2 deletions
  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");
             return _parentCache.HasUserSignal("InteractedWith");
         }
         }
 
 
-        public void _Notification(int what)
+        public override void _Notification(int what)
         {
         {
-            switch (what)
+            switch ((long)what)
             {
             {
                 case NotificationParented:
                 case NotificationParented:
                     _parentCache = GetParent();
                     _parentCache = GetParent();