예제 #1
0
 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>();
 }