Exemple #1
0
    //心跳
    public int onHeartBeat(HeartBeatRes message)
    {
        int serverTime = message.time;

        Debug.Log("current serverTime :" + serverTime);
        VitNetworkScript.Instance.reciveHeartBeat(message);
        return(1);
    }
		public void reciveHeartBeat(HeartBeatRes message){
			int serverTime = message.time;
			Utils.m_instance.serverTime = serverTime;
			m_bHeartSend = false;
			this.m_heartRev = 0.0f;
		}