Exemplo n.º 1
0
 /// <summary>
 /// £aduje kolejny poziom
 /// </summary>
 public void LoadNextLevel()
 {
     if (_currentLevelNumber < _levelList.Count - 1)
     {
         CurrentLevel = new Level(this, _levelList[++_currentLevelNumber], CurrentLevel.Player);
         CurrentLevel.Initialize();
     }
     else
     {
         OnLastLevelComplete();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// £aduje poziom o podanej nazwie
 /// </summary>
 /// <param name="name">Nazwa poziomu</param>
 public void LoadLevel(string name)
 {
     CurrentLevel = new Level(this, name);
     CurrentLevel.Initialize();
 }