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; 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() { } }