private void EnemyMoved(int x, int y) { Debug.Log("Move: " + x + ", " + y); Debug.Log("Enemy location: " + piece2.x + ", " + piece2.y); Vector2 gridPos = new Vector2(x, y); piece2.Move(x, y, Grid1.CalcWorldPos(gridPos)); }
public void MovePiece(Piece piece, int x, int y) { Vector2 gridPos = new Vector2(x, y); piece.Move(x, y, Grid1.CalcWorldPos(gridPos)); }