Esempio n. 1
0
 // Token: 0x060012DC RID: 4828 RVA: 0x0005C87A File Offset: 0x0005AA7A
 protected static void InvokeCmdCmdPing(NetworkBehaviour obj, NetworkReader reader)
 {
     if (!NetworkServer.active)
     {
         Debug.LogError("Command CmdPing called on client.");
         return;
     }
     ((PingerController)obj).CmdPing(GeneratedNetworkCode._ReadPingInfo_PingerController(reader));
 }
Esempio n. 2
0
        // Token: 0x060012DF RID: 4831 RVA: 0x0005C99C File Offset: 0x0005AB9C
        public override void OnDeserialize(NetworkReader reader, bool initialState)
        {
            if (initialState)
            {
                this.currentPing = GeneratedNetworkCode._ReadPingInfo_PingerController(reader);
                return;
            }
            int num = (int)reader.ReadPackedUInt32();

            if ((num & 1) != 0)
            {
                this.OnSyncCurrentPing(GeneratedNetworkCode._ReadPingInfo_PingerController(reader));
            }
        }