Example #1
0
    private void InitMinionManager()
    {
        MinionManager = gameObject.AddComponent <MinionManager>();
        MinionManager.Init(Couch, Fountain);
        MinionManager.OnWaveBeaten    += OnEnemyWaveBeaten;
        MinionManager.OnMinionSpawned += OnMinionSpawned;

        MinionManager.AddTeamMaterial(TeamID.player, PlayerTeamMaterial);
        MinionManager.AddTeamMaterial(TeamID.enemy, EnemyTeamMaterial);
    }