21 lines
479 B
C#
21 lines
479 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace State.PlayerStateMachine
|
|
{
|
|
public class PlayerStateMachine : StateMachine
|
|
{
|
|
public Pawn controlledPawn;
|
|
public void Issue(GameState.Command command) => CurrentState?.Handle(command);
|
|
public void SetMove(Vector2 input)
|
|
{
|
|
Debug.Log(input);
|
|
CurrentState?.Handle(input);
|
|
}
|
|
|
|
private void Awake()
|
|
{
|
|
ChangeState(new Idle());
|
|
}
|
|
}
|
|
} |