Characters exit
This commit is contained in:
@@ -24,6 +24,7 @@ public partial class AreaExit : Node3D
|
||||
var main = GetTree().Root.GetNode<Main>("/root/Main");
|
||||
if (!_gameManager.Players.ElementAt(0).CharactersLeftOnStage.Any())
|
||||
{
|
||||
_gameManager.OnLevelClear();
|
||||
main.LoadNextLevel(_levelIndex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user