예제 #1
0
 public void TransferToState(APlayerState state)
 {
     // Debug.Log("Exiting: " + currentState);
     // Debug.Log("Entering: " + state);
     currentState.OnExit(this);
     currentState = state;
     currentState.OnEnter(this);
 }
예제 #2
0
    private void Awake()
    {
        fileDetails = null;
        rigidbody2d.gravityScale = 0;

        FindObjectOfType <TileInfo>().levelGrid = levelgrid;

        currentState.OnEnter(this);
    }