示例#1
0
    public void init(int levelId)
    {
        EventControl.levelComplete += destroy;
        EventControl.levelFail += destroy;

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

        enemyWorker = GetComponent <LevelEnemyWorker>();
        teamWorker  = GetComponent <LevelTeamWorker>();
        enemyWorker.init(this, levelId);
        teamWorker.init(this);
    }