/// <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(); } }
/// <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(); }