Esempio n. 1
0
 private void ReleaseResources()
 {
     if (heatbeatService != null)
     {
         this.heatbeatService.Destroy();
         this.heatbeatService = null;
     }
 }
Esempio n. 2
0
        public void HandlerHandSnake(HandSnakeResp resp)
        {
            this.heatbeatTime = resp.HeartbeatTime;
            this.payload      = resp.Payload;
            if (heatbeatService == null)
            {
                heatbeatService = new HeartBeatService(this, heatbeatTime);
            }
            //heatbeatService.Start();
            UnityClientEvent evt = new UnityClientEvent(UnityClientEvent.HANDSHAKE);

            evt.Success = resp.Success;
            evt.Parame  = resp;
            parent.Dispatch(evt);
        }