コード例 #1
0
    /// <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;
    }
コード例 #2
0
    /// <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;
    }
コード例 #3
0
    /// <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;
    }