private bool DidReceiveSystemTime(int wHandleCode, byte[] wByteBuffer, int wDataSize)
        {
            int dataLen = wByteBuffer.Length;

            if (dataLen < wDataSize)
            {
                Debug.LogError("System Time data Error!!");
                return(false);
            }

            CMD_SC_GF_TIME_SYNC systemTime = GameConvert.ByteToStruct <CMD_SC_GF_TIME_SYNC>(wByteBuffer, wByteBuffer.Length);

            if (onReceiveSystemTimeEvent != null)
            {
                onReceiveSystemTimeEvent(systemTime);
            }


            return(true);
        }
Exemplo n.º 2
0
 public void S_C_TimeSync(CMD_SC_GF_TIME_SYNC _timeSync)
 {
     TimeCtrl.Instance.serverTime = _timeSync.gsServerTime;
 }