void Start() { mainGame.LevelCompleted += HandleLevelCompleted; mainGame.NewLevelLoaded += HandleNewLevelLoaded; levelProgress.Init(mainGame.CurrentLevelInStage, mainGame.LevelNumInStage); }
private void Start() { _levelsManager.LoadLevels(); MapControl.GenerateMap(_levelsManager.Levels); EnemiesController.EnemiesEnded += OnEnemiesEnded; LevelProgress.Init(EnemiesController); UIController.StartGame += OnStartGame; UIController.RestartGame += OnRestartGame; UIController.ExitGame += OnExitGame; }