Skip to content

Commit 8db6545

Browse files
authored
Fix type of 'what' parameter to _Notifications In C# usage example (#11008)
* Fix type of 'what' parameter to _Notifications In C# usage example
1 parent 50ee240 commit 8db6545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/best_practices/godot_notifications.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ nodes that one might create at runtime.
360360
return _parentCache.HasUserSignal("InteractedWith");
361361
}
362362

363-
public void _Notification(int what)
363+
public override void _Notification(int what)
364364
{
365-
switch (what)
365+
switch ((long)what)
366366
{
367367
case NotificationParented:
368368
_parentCache = GetParent();

0 commit comments

Comments
 (0)