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

        FindObjectOfType <TileInfo>().levelGrid = levelgrid;

        currentState.OnEnter(this);
    }