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