Beispiel #1
0
    public void Execute()
    {
        MoveCharacterState state = hero.ChangeToState <MoveCharacterState>();

        state.MoveTo(new MoveToCommand()
        {
            Tile = tile, Enemy = enemy
        });
    }
Beispiel #2
0
    public void Execute()
    {
        MoveCharacterState state = hero.ChangeToState <MoveCharacterState>();

        tile.IsPreview(false);
        state.MoveTo(new MoveToCommand()
        {
            Tile = tile, Enemy = null
        });
    }