コード例 #1
0
ファイル: PC_Cont.cs プロジェクト: tdcoish/OKG_2DShooter
 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);
 }
コード例 #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);
    }