示例#1
0
        public override void Dispose()
        {
            if (this.IsDisposed)
            {
                return;
            }

            base.Dispose();

            foreach (Room room in this.idRooms.Values)
            {
                room.Dispose();
            }

            this.idRooms.Clear();

            this.serialNumber.Clear();

            Instance = null;
        }
示例#2
0
 public abstract void Init(object rule, RoomComponent _parent);
示例#3
0
        public void Init <T>(object rule, RoomComponent roomCpt) where T : RoomBehaviorComponent, new()
        {
            roomBehaviorCpt = AddComponent <T>();

            roomBehaviorCpt.Init(rule, roomCpt);
        }
示例#4
0
 public void Awake()
 {
     Instance = this;
 }