Beispiel #1
0
 // process incoming in early update
 public override void ClientEarlyUpdate()
 {
     // only process messages while transport is enabled.
     // scene change messsages disable it to stop processing.
     // (see also: https://github.com/vis2k/Mirror/pull/379)
     if (enabled)
     {
         client.TickIncoming();
     }
 }
Beispiel #2
0
 // process incoming in early update
 public override void ClientEarlyUpdate()
 {
     // scene change messages disable transports to stop them from
     // processing while changing the scene.
     // -> we need to check enabled here
     // -> and in kcp's internal loops, see Awake() OnCheckEnabled setup!
     // (see also: https://github.com/vis2k/Mirror/pull/379)
     if (enabled)
     {
         client.TickIncoming();
     }
 }