Ejemplo n.º 1
0
    // Returns the world position of the coordinate on the board (this is client-side, so 0 is always on the left from both players perspectives)
    public Vector3 GetPositionOfCoord(int x, int y)
    {
        if (ConnectFour.IsCoordInRange(x, y))
        {
            return(transform.TransformPoint(positions[x, y]));
        }

        else
        {
            return(Vector3.zero);
        }
    }