Ejemplo n.º 1
0
    void SetLocation(Vector2 newLocation)
    {
        location = newLocation;

        transform.position = grid.GetCellPosition((int)location.x, (int)location.y);
    }