public override void OnStateEnter() { this.TimeWindowForInput = null; this.TimeWindowResponse = null; this.EnableHandsJumpReadyState(); base.OnStateEnter(); }
private IEnumerator WaitForInput(float time) { yield return(new WaitForSeconds(time)); if (TargetController.HandleHandGrabInputs() == 0) { yield return(new WaitForFixedUpdate()); this.JumpUp(); this.TimeWindowResponse = () => { return(StateMachine.PlayerStates.IdleAir); }; yield break; } else if (TargetController.HandleHandGrabInputs() == 1) { this.TimeWindowResponse = () => { return(StateMachine.PlayerStates.Rotating); }; yield break; } else { TimeWindowResponse = () => { return(this); }; } }