コード例 #1
0
ファイル: KcpTransport.cs プロジェクト: XerShade/Reoria
 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();
     }
 }
コード例 #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();
     }
 }
コード例 #3
0
 public override void Update()
 {
     server.TickIncoming();
     server.TickOutgoing();
 }