コード例 #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);
    }
コード例 #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();
        }
    }
コード例 #3
0
ファイル: EN_Misc.cs プロジェクト: tdcoish/OKG_2D_Shooter
 public void FUpdateUI()
 {
     gUI.FUpdateShieldHealthBars(cHpShlds.mHealth.mAmt, cHpShlds.mHealth._max, cHpShlds.mShields.mStrength, cHpShlds.mShields._max, cHpShlds._hasShieldsEver);
 }