Ejemplo n.º 1
0
 private void OnEnable()
 {
     StartCoroutine(Movement());
     mCurrentHP   = mMaxHP;
     mbInvinsible = true;
     mHPBar.SetValue(mCurrentHP, mMaxHP);
     mHPBar.gameObject.SetActive(true);
 }
Ejemplo n.º 2
0
    private void OnEnable()
    {
        mCurrentHP = mMaxHP;
        mUIController.ShowPlayerHP(mCurrentHP, mMaxHP);

        mCurrentFireRate = 0;
        mBoltCount       = 1;

        mSupporterFlag = false;
        for (int i = 0; i < mSupporterArr.Length; i++)
        {
            mSupporterArr[i].gameObject.SetActive(false);
        }

        mFuel = mMaxFuel;
        mFuelGauge.SetValue(mFuel, mMaxFuel);

        mOverHeatGauge.SetValue(mCurrentHeat, mOverHeatMax);
        Color color = new Color(1, 1 - mCurrentHeat / mOverHeatMax * .8f, 0, 1);

        mOverHeatGauge.SetColor(color);
    }