Esempio n. 1
0
    public void SwapPosition(UnitComponent other)
    {
        Tile thisTile  = currentTile;
        Tile otherTile = other.currentTile;

        StartCoroutine(movementComponent.MovingDirectlyTo(otherTile));
        StartCoroutine(other.GetComponent <MovementComponent>().MovingDirectlyTo(thisTile));
    }