예제 #1
0
 public static RobotEntity CreateInstance(int x, int y, Directions directions)
 {
     if (instance == null)
     {
         instance = new RobotEntity(x, y, directions);
     }
     return(instance);
 }
예제 #2
0
 public static void Clear()
 {
     instance = null;
 }