Пример #1
0
        public static DoorManager Get()
        {
            if (mInstance == null)
                mInstance = new DoorManager();

            return mInstance;
        }
Пример #2
0
        public void destroy()
        {
            foreach (PlaceableDoor door in mDoors.Values)
                GameObject.Destroy(door.gameObject);

            mDoors.Clear();
            mDoors = null;

            mInstance = null;
        }
Пример #3
0
 public static void cleanup()
 {
     mDM = null;
 }
Пример #4
0
        protected override void Start()
        {
            if (mDM == null)
                mDM = DoorManager.Get();

            base.Start();
        }