protected override void Update() { triggerHeld = Input.GetMouseButton(0); if (triggerHeld) { // 射击 Firing(); } else { // 重设开火延迟 delayBeforeFire.ResetCurrentValue(); } }
public override void Initialize() { base.Initialize(); existentTime.ResetCurrentValue(); }
public override void Initialize() { base.Initialize(); health.ResetCurrentValue(); healthBar.value = health.CurrentValue / health.BaseValue; }