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