Exemplo n.º 1
0
 public LevelExitData(Exit exit, LevelStateData currentLevelState)
 {
     this.exit = exit;
     this.currentLevelState = currentLevelState;
 }
 private void LevelController_OnLevelChanges(object sender, LevelStateData e)
 {
     amountOfEnemiesDisplayer.SetText(e.totalEnemies - e.deadEnemies);
 }
Exemplo n.º 3
0
        private void Exit_OnEnterExit(object sender, Collider2D e)
        {
            var levelStateData = new LevelStateData(enemiesSet.Count, deadEnemies.Count);

            OnLevelExit?.Invoke(this, new LevelExitData(sender as Exit, levelStateData));
        }