public static RoomGeneratorProd GetInstance() { if (!instance) { gameobject = new GameObject (); gameobject.name = "RoomGeneratorProd"; instance = gameobject.AddComponent(typeof(RoomGeneratorProd)) as RoomGeneratorProd; } return instance; }
static public RoomGeneratorProd GetInstance() { if (!instance) { gameobject = new GameObject(); gameobject.name = "RoomGeneratorProd"; instance = gameobject.AddComponent(typeof(RoomGeneratorProd)) as RoomGeneratorProd; } return(instance); }