示例#1
0
    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));
    }
示例#2
0
    public void MovePiece(Piece piece, int x, int y)
    {
        Vector2 gridPos = new Vector2(x, y);

        piece.Move(x, y, Grid1.CalcWorldPos(gridPos));
    }