예제 #1
0
    public void ChangeState(IMoveAction newState)
    {
        CurrentState.Exit();

        CurrentState = newState;
        newState.Enter();
    }
예제 #2
0
    public void Initialize(IMoveAction startingState)
    {
        ActionState     = PlayerAction.move;
        PlayerDirection = Vector2.zero;

        CurrentState = startingState;
        startingState.Enter();
    }
예제 #3
0
 public DeferredAction(IMoveAction action, int requestedExecutionTick)
 {
     Action = action;
     RequestedExecutionTick = requestedExecutionTick;
 }