Esempio n. 1
0
    void Start()
    {
        mainGame.LevelCompleted += HandleLevelCompleted;
        mainGame.NewLevelLoaded += HandleNewLevelLoaded;

        levelProgress.Init(mainGame.CurrentLevelInStage, mainGame.LevelNumInStage);
    }
Esempio n. 2
0
    private void Start()
    {
        _levelsManager.LoadLevels();
        MapControl.GenerateMap(_levelsManager.Levels);

        EnemiesController.EnemiesEnded += OnEnemiesEnded;
        LevelProgress.Init(EnemiesController);

        UIController.StartGame   += OnStartGame;
        UIController.RestartGame += OnRestartGame;
        UIController.ExitGame    += OnExitGame;
    }