Ejemplo n.º 1
0
 public override void ServerEarlyUpdate()
 {
     // 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)
     {
         server.TickIncoming();
     }
 }
Ejemplo n.º 2
0
 public override void ServerEarlyUpdate()
 {
     // 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)
     {
         server.TickIncoming();
     }
 }
 public override void Update()
 {
     server.TickIncoming();
     server.TickOutgoing();
 }