コード例 #1
0
 public void Awake()
 {
     m_RoomSocket = ClientGlobal.GetInstance().GetRoomSocket();
     m_UserList   = ClientGlobal.GetInstance().GetUserList();
     m_Owner      = ClientGlobal.GetInstance().GetOwner();
     m_RoomSocket.AddSocketReadSink(this);
 }
コード例 #2
0
ファイル: ClientGlobal.cs プロジェクト: mengtest/wh
 /// <summary>
 /// 获取userList的单例
 /// </summary>
 public ClientUserList GetUserList()
 {
     if (m_UserList == null)
     {
         m_UserList = new ClientUserList();
     }
     return(m_UserList);
 }