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