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); }
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); }