Exemplo n.º 1
0
    public void ShowRoomInfo(int roomNumber, string name, bool isLock, int currentMemberCnt, int maxMemberCnt, string mode, string rule, string isPlay)
    {
        for (int n = 0; n < _roomInfoList.Count; n++)
        {
            if (_roomInfoList[n]._MyRoomNumber == roomNumber)
            {
                _roomInfoList[n].RenewRoomInfo(currentMemberCnt, maxMemberCnt, isPlay);
                return;
            }
        }

        GameObject prefabRoomInfo = ResourcePoolManager._instance.GetObj <GameObject>(ResourcePoolManager.eResourceKind.Prefab, "RoomInfo");
        RoomInfo   room           = Instantiate(prefabRoomInfo, _roomTr).GetComponent <RoomInfo>();

        room.InitRoomInfo(roomNumber, name, isLock, currentMemberCnt, maxMemberCnt, mode, rule, isPlay);
    }
Exemplo n.º 2
0
 void InitRoomInfo()
 {
     room = GetComponent <RoomInfo>();
     room.InitRoomInfo();
 }