public void init(int levelId) { EventControl.levelComplete += destroy; EventControl.levelFail += destroy; enemyWorker = GetComponent<LevelEnemyWorker>(); teamWorker = GetComponent<LevelTeamWorker>(); enemyWorker.init(this,levelId); teamWorker.init(this); }
public void init(int levelId) { EventControl.levelComplete += destroy; EventControl.levelFail += destroy; enemyWorker = GetComponent <LevelEnemyWorker>(); teamWorker = GetComponent <LevelTeamWorker>(); enemyWorker.init(this, levelId); teamWorker.init(this); }