コード例 #1
0
ファイル: NetMsgMng.cs プロジェクト: atom-chen/tianyu
 public static NetMsgMng CreateNew(string server, int port)
 {
     if (GameCenter.netMsgMng == null)
     {
         NetMsgMng netMsgMng = new NetMsgMng();
         netMsgMng.Init(server, port);
         return(netMsgMng);
     }
     else
     {
         GameCenter.netMsgMng.UnRegist();
         return(GameCenter.netMsgMng);
     }
 }