/// <summary> /// Funzione di Setup /// </summary> /// <param name="_lvlMng"></param> public override void Setup(LevelManager _lvlMng) { base.Setup(_lvlMng); sm = GetComponent <Boss2SMController>(); tourretsCtrl = GetComponent <Boss2TourretsController>(); laserCtrl = GetComponent <Boss2LaserController>(); coverBlockCtrl = GetComponent <Boss2CoverBlocksController>(); phaseCtrl = GetComponent <Boss2PhaseController>(); }
public override void Enter() { bossCtrl = context.GetBossController(); bossTourretsCtrl = bossCtrl.GetTourretsController(); coverBlockCtrl = bossCtrl.GetCoverBlocksController(); lifeCtrl = bossCtrl.GetBossLifeController(); lifeCtrl.SetCanTakeDamage(canTakeDirectDamage); coverBlockCtrl.EnableCoverBlocks(true); bossTourretsCtrl.TourretsSetup(); bossTourretsCtrl.SetCanAim(true); Debug.Log("Phase 1 Iniziata"); Complete(); }