コード例 #1
0
 public override void OnStateEnter()
 {
     this.TimeWindowForInput = null;
     this.TimeWindowResponse = null;
     this.EnableHandsJumpReadyState();
     base.OnStateEnter();
 }
コード例 #2
0
    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); };
        }
    }