mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use switch consistently in _notification (scene folder)
This commit is contained in:
parent
171021145d
commit
0f5455230c
127 changed files with 2853 additions and 2601 deletions
|
|
@ -108,10 +108,15 @@ void MultiplayerSynchronizer::_notification(int p_what) {
|
|||
if (root_path.is_empty()) {
|
||||
return;
|
||||
}
|
||||
if (p_what == NOTIFICATION_ENTER_TREE) {
|
||||
_start();
|
||||
} else if (p_what == NOTIFICATION_EXIT_TREE) {
|
||||
_stop();
|
||||
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
_start();
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
_stop();
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue