Exemplo n.º 1
0
    // For now he just fires his rifle.
    void Update()
    {
        cRifle.FAttemptFire(rPC, gShotPoint.transform.position);
        cRifle.mData = cRifle.FRunUpdate(cRifle.mData);

        mShields = RUN_UpdateShieldsData(mShields);

        gUI.FUpdateShieldHealthBars(mHealth, _maxHealth, mShields.mStrength, mShields._max, true);
    }
Exemplo n.º 2
0
    void Update()
    {
        switch (mState)
        {
        case STATE.FIRING: RUN_FiringState(); break;

        case STATE.COOLING_DOWN: RUN_CooldownState(); break;
        }

        gUI.FUpdateShieldHealthBars(mHealth.mAmt, mHealth._max);

        if (mHealth.mAmt <= 0f)
        {
            KillOurselves();
        }
    }
Exemplo n.º 3
0
 public void FUpdateUI()
 {
     gUI.FUpdateShieldHealthBars(cHpShlds.mHealth.mAmt, cHpShlds.mHealth._max, cHpShlds.mShields.mStrength, cHpShlds.mShields._max, cHpShlds._hasShieldsEver);
 }