public override void Enter() { groupCtrl = context.GetLevelManager().GetGroupController(); groupMovementCtrl = groupCtrl.GetGroupMovementController(); bossCtrl = context.GetBossController(); lifeCtrl = bossCtrl.GetBossLifeController(); collisionCtrl = bossCtrl.GetBossCollisionController(); phaseCtrl = bossCtrl.GetPhaseController(); lifeCtrl.OnBossDead += HandleOnBossDead; collisionCtrl.OnAgentHit += HandleOnAgentHit; phaseCtrl.OnThirdPhaseStart += HandleOnThirdPhaseStart; suckTimer = suckDuration; }
public override void Enter() { groupCtrl = context.GetLevelManager().GetGroupController(); bossCtrl = context.GetBossController(); lifeCtrl = bossCtrl.GetBossLifeController(); collisionCtrl = bossCtrl.GetBossCollisionController(); tourretsCtrl = bossCtrl.GetTourretsController(); phaseCtrl = bossCtrl.GetPhaseController(); timer = 0; waitTime = Random.Range(waitTimeRange.x, waitTimeRange.y); lifeCtrl.OnBossDead += HandleOnBossDead; collisionCtrl.OnAgentHit += HandleOnAgentHit; tourretsCtrl.OnTourretDead += HandleOnTourretDead; tourretsCtrl.OnAllTourretsDead += HandleOnAllTourretDead; phaseCtrl.OnThirdPhaseStart += HandleOnThirdPhaseStart; }