public override void Exit(PlayerStateEntry upperState) { currentState.Exit(this); //アニメーション処理 if (currentState == wallJumping) { anim.SetBool("JumpOfTop", false); } }
//状態遷移関数 public override void ChangeState(PlayerStateEntry se) { currentState.Exit(this); preState = currentState; currentState = se; currentState.Enter(this); }
public override void Exit(PlayerStateEntry upperState) { currentState.Exit(this); }