Beispiel #1
0
 public void OnTick()
 {
     stopWatch.Start();
     tick++;
     foreach (var world in worlds)
     {
         world.Update();
     }
     listener.Update();
     matchMaker.Update();
     gamemode.OnHandleTick();
     avargateTickTime = stopWatch.Elapsed.TotalMilliseconds;
     stopWatch.Reset();
 }