private void ParseBytes(uint id, CL_Base cl, byte[] bytes) { switch (id) { case 1: (cl as CL_LoginAccount).rsp.unserial(new BinaryReader(new MemoryStream(bytes))); //if((cl as CL_LoginAccount).rsp.rc == 0) Control.GetGUI(GUISign.UINEW).SocketData(Singleton<CL_LoginAccount>.Instance.rsp); //else Debug.LogError((cl as CL_LoginAccount).rsp.rc); break; } }
public void InQueue(uint id, CL_Base cl) { handler.Add(id, cl); }