move the level instance to a level node so that pausing the game doesn't effect the main node
This commit is contained in:
@@ -52,7 +52,7 @@ void Main::_ready()
|
||||
|
||||
if (level != NULL)
|
||||
{
|
||||
add_child(level->instance());
|
||||
get_node("Level")->add_child(level->instance());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user