public static RobotEntity CreateInstance(int x, int y, Directions directions) { if (instance == null) { instance = new RobotEntity(x, y, directions); } return(instance); }
public static void Clear() { instance = null; }