public void Connect(string rid, string uid) { if (state != VirtualManState.Init) { Debug.Log("VM#Connect#Wrong State. Current State:" + state.ToString()); return; } SetStates(VirtualManState.JoiningRoom); this.roomId = rid; this.mineUid = UserIdUtil.GetCombineUid(uid, clientType); NetHelper.Instance.JoinRoom(this.mineUid, rid, clientType, RoomType.VirtualMan); }
public void Connect(string rid, string uid) { if (state != SpectatorViewState.Init) { Debug.Log("SV#Connect#Wrong State. Current State:" + state.ToString()); return; } if (rid != null && !rid.Equals("")) { this.roomId = rid; } SetStates(SpectatorViewState.JoiningRoom); this.mineUid = UserIdUtil.GetCombineUid(uid, clientType); NetHelper.Instance.JoinRoom(this.mineUid, roomId, clientType, RoomType.SpeactorView); }