/// <summary> /// Funzione che gestisce l'evento di morte di una torretta /// </summary> private void HandleOnTourretDead(int _damage) { bool canTakeDamage = lifeCtrl.GetCanTakeDamage(); lifeCtrl.SetCanTakeDamage(true); lifeCtrl.TakeDamage(_damage); lifeCtrl.SetCanTakeDamage(canTakeDamage); }
public override void Enter() { bossCltr = context.GetBossController(); lifeCtrl = bossCltr.GetBossLifeController(); lifeCtrl.SetCanTakeDamage(canTakeDirectDamage); Debug.Log("Phase 3 Iniziata"); Complete(); }
public override void Enter() { bossCtrl = context.GetBossController(); bossTourretsCtrl = bossCtrl.GetTourretsController(); lifeCtrl = bossCtrl.GetBossLifeController(); lifeCtrl.SetCanTakeDamage(canTakeDirectDamage); bossTourretsCtrl.SetCanAim(false); Debug.Log("Phase 2 Iniziata"); Complete(); }
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(); }