소스 검색

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 2 달 전
부모
커밋
8db6545d46
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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();