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