Exemple #1
0
 void Update()
 {
     cRigid.velocity = HandleInputForVel();
     RotateToMouse();
     cGun.FRun();
     cGrnd.FRun();
     CheckDead();
     rUI.FSetBarSize(_health / _maxHealth);
     rUI.FSetAmmoBarSize(cGun._ammo, cGun._maxAmmo);
     rUI.FSetShieldBarSize(cShields._val, cShields._maxVal);
     rUI.FSetTimeText(Time.time);
 }
Exemple #2
0
    void Update()
    {
        HandleMouseRotations();

        cGun.FRun();
        cGrnd.FRun();

        CheckAndHandleDeath();
        rUI.fSetHealthBarSize(_health, _maxHealth);
        rUI.FSetShieldBarSize(cShields._val, cShields._maxVal);
        rUI.FSetAmmoBarSize(cGun._ammo, cGun._maxAmmo);
        rUI.FSetTimeText(Time.time);
    }