public override void FixedUpdate() { base.FixedUpdate(); bool down = false; for (int i = 0; i < this.Signatures.Count; i++) { if (this.Signatures[i].GetCurrentState(true) >= ButtonState.Down) { down = true; break; } } _currentFixed = InputUtil.GetNextButtonState(_currentFixed, down); }
public override void Update() { base.Update(); bool down = false; for (int i = 0; i < this.Signatures.Count; i++) { if (this.Signatures[i].GetCurrentState(false) >= ButtonState.Down) { down = true; break; } } _current = InputUtil.GetNextButtonState(_current, down); if (_current == ButtonState.Down) { _lastDown = Time.unscaledTime; } }