// 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); }
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(); } }
public void FUpdateUI() { gUI.FUpdateShieldHealthBars(cHpShlds.mHealth.mAmt, cHpShlds.mHealth._max, cHpShlds.mShields.mStrength, cHpShlds.mShields._max, cHpShlds._hasShieldsEver); }