void Start() { if (instance != null) { DestroyObject(this.gameObject); return; } instance = this; }
void Awake() { if (StaticRoomManager == null) { DontDestroyOnLoad (gameObject); StaticRoomManager = this; }else if(StaticRoomManager != this){ Destroy(gameObject); } }
public generate_rooms(room_manager _rm, int _size) { this.rm = _rm; this.size = _size; }
public lock_room_change(room_manager _rm, bool _lock) { this.rm = _rm; this._lock = _lock; }