public static DoorManager Get() { if (mInstance == null) mInstance = new DoorManager(); return mInstance; }
public void destroy() { foreach (PlaceableDoor door in mDoors.Values) GameObject.Destroy(door.gameObject); mDoors.Clear(); mDoors = null; mInstance = null; }
public static void cleanup() { mDM = null; }
protected override void Start() { if (mDM == null) mDM = DoorManager.Get(); base.Start(); }