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