示例#1
0
    void Start()
    {
        if (instance != null)
        {
            DestroyObject(this.gameObject);
            return;
        }

        instance = this;
    }
示例#2
0
    void Awake()
    {
        if (StaticRoomManager == null) {
            DontDestroyOnLoad (gameObject);
            StaticRoomManager = this;
        }else if(StaticRoomManager != this){

            Destroy(gameObject);
        }
    }
示例#3
0
 public generate_rooms(room_manager _rm, int _size)
 {
     this.rm   = _rm;
     this.size = _size;
 }
示例#4
0
 public lock_room_change(room_manager _rm, bool _lock)
 {
     this.rm    = _rm;
     this._lock = _lock;
 }