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; }
public abstract void Init(object rule, RoomComponent _parent);
public void Init <T>(object rule, RoomComponent roomCpt) where T : RoomBehaviorComponent, new() { roomBehaviorCpt = AddComponent <T>(); roomBehaviorCpt.Init(rule, roomCpt); }
public void Awake() { Instance = this; }