public SocketClient(SocketClientMgr mgr, SocketClientType socketClientType, Action <SocketClientType, MsgPacket> packetHandler = null)
 {
     Status                = SocketStatus.DisConnected;
     this._mgr             = mgr;
     this.SocketClientType = socketClientType;
     this._packetHandler   = packetHandler;
 }
示例#2
0
 void Awake()
 {
     CoroutineUtiltity    = gameObject.AddComponentOnce <LaunchCoroutineUtility>();
     WWWUtility           = gameObject.AddComponentOnce <LaunchWWWUtility>();
     Scheduler            = gameObject.AddComponentOnce <UpdateScheduler>();
     this.ResourceMgr     = gameObject.AddComponentOnce <ResourceMgr>();
     this.AssetBundleMgr  = gameObject.AddComponentOnce <AssetBundleMgr>();
     LuaClient            = gameObject.AddComponentOnce <LuaMultiClient>();
     this.SocketClientMgr = gameObject.AddComponentOnce <SocketClientMgr>();
 }