123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class RoomMainInfo
- {
- public static string RoomOwner;
- public static string roomPeerID;
- public static string roomName
- {
- get
- {
- return "用户" + UserInfo.userName + "的房间";
- }
- }
- public static string roomNum;
- public static int roomMaxPeopleNum
- {
- get
- {
- if (isCreator == "0")
- {
- if (UserInfo.isSN)
- {
- return 2;
- }
- else if (UserInfo.activateType == 1)
- {
- return 2;
- }
- else
- {
- return 10;
- }
- }
- else
- {
- if (isSN)
- {
- return 2;
- }
- else if (RoomCreatorActivateType == 1)
- {
- return 2;
- }
- else
- {
- return 10;
- }
- }
- }
- }
- public static string isCreator;//0代表房主
- public static int RoomCreatorActivateType;
- public static bool isSN;
- public static int roomPeopleNum
- {
- get
- {
- if (RemoteRtc.Instance.customPeerList != null)
- {
- return RemoteRtc.Instance.customPeerList.getPeers().Count+1;
- }
- return 0;
- }
- }
- public static void CreateRoom()
- {
- }
- }
|