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 tháng trước cách đây
mục cha
commit
8db6545d46
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();