Exemplo n.º 1
0
 public static void printPos(Position2D p)
 {
     Debug.Log(p.x + "." + p.y);
 }
Exemplo n.º 2
0
 public static bool comparePos(Position2D a, Position2D b)
 {
     return(a.x == b.x && a.y == b.y);
 }
Exemplo n.º 3
0
 public static Vector2 pos2DToVec2(Position2D p)
 {
     return(new Vector2(p.x, p.y));
 }
Exemplo n.º 4
0
 public static int[] pos2DToInt(Position2D p)
 {
     return(new int[] { p.x, p.y });
 }
Exemplo n.º 5
0
 public override string ToString()
 {
     return(Position2D.ToString());
 }