feat: current gamemode is no longer reset when the first level is unloaded
parent
ea338c43aa
commit
1cb000aa98
|
@ -165,7 +165,6 @@ Level3D *GameRoot3D::load_level_at(Ref<PackedScene> level, Transform3D at) {
|
|||
// if this is the first level containing a game mode currently active use it's gamemode as a prototype
|
||||
if(this->game_mode.is_null()) {
|
||||
this->set_game_mode(instance->get_game_mode_prototype());
|
||||
instance->connect("tree_exited", Callable(this, "reset_game_mode"));
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue