Level Manager Improvement
This commit is contained in:
parent
05f2cdb62b
commit
7ff2d07c5b
|
@ -77,6 +77,12 @@ namespace Level
|
|||
{
|
||||
DisableAllLevels();
|
||||
|
||||
if (!Levels.ContainsKey(levelNumber))
|
||||
{
|
||||
UIManager.Instance.SwitchToCanvas("Level Selection Menu");
|
||||
return;
|
||||
}
|
||||
|
||||
currentLevel = Levels[levelNumber];
|
||||
currentLevel.Enable();
|
||||
|
||||
|
|
Loading…
Reference in New Issue