/// <summary> /// Funzione che esegue il Setup /// </summary> /// <param name="_bossCtrl"></param> public void Setup(BossControllerBase _bossCtrl) { bossLifeCtrl = _bossCtrl.GetBossLifeController(); bossMaxLife = bossLifeCtrl.GetMaxBossLife(); bossLifeBar.value = 1; bossLifeCtrl.OnBossTakeDamage += HandleOnBossTakeDamage; }
/// <summary> /// Funzione di Setup /// </summary> /// <param name="_bossCtrl"></param> public void Setup(Boss1Controller _bossCtrl) { bossCtrl = _bossCtrl; bossLifeCtrl = bossCtrl.GetBossLifeController(); maxBossLife = bossLifeCtrl.GetMaxBossLife(); currentPhase = 1; bossLifeCtrl.OnBossTakeDamage += HandleOnBossTakeDamage; }
/// <summary> /// Funzione di Setup /// </summary> /// <param name="_bossCtrl"></param> public void Setup(Boss2Controller _bossCtrl) { bossCtrl = _bossCtrl; bossLifeCtrl = bossCtrl.GetBossLifeController(); maxBossLife = bossLifeCtrl.GetMaxBossLife(); thirdPhase = false; bossLifeCtrl.OnBossTakeDamage += HandleOnBossTakeDamage; }