Example #1
0
        public static void Init()
        {
            client = new InnerNetNode();
            server = new InnerNetNode();

            server.Init(client, 99999999, true);
            client.Init(server, MessagePool.OnCSMessageArrived, true);
        }
Example #2
0
 public void Init(InnerNetNode node, int cs, bool littleEnd)
 {
     if (!inited)
     {
         netNode  = node;
         csNetGID = cs;
         adapter  = new NetAdapter();
         adapter.SetEndianness(littleEnd);
         inited = true;
     }
 }