Level Manager Improvement

This commit is contained in:
Syntriax 2022-02-26 12:59:30 +03:00
parent 05f2cdb62b
commit 7ff2d07c5b
3 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,12 @@ namespace Level
{
DisableAllLevels();
if (!Levels.ContainsKey(levelNumber))
{
UIManager.Instance.SwitchToCanvas("Level Selection Menu");
return;
}
currentLevel = Levels[levelNumber];
currentLevel.Enable();