public void Tick() { if (systems == null) { return; } pingSystem.Execute(); if (!snapshotManager.IsReady()) { int bufferLength = snapshotManager.GetBufferLength(); log.Info($"Буффер не заполнен. bufferLength = {bufferLength}"); return; } if (PlayerIdStorage.PlayerEntityId == 0) { log.Info("Пустой id аккаунта."); return; } systems.Execute(); systems.Cleanup(); }
//ECS public void Tick() { if (IsSessionTimedOut()) { //Тик на матче больше не будет вызван. matchRemover.MarkMatchAsFinished(matchId); return; } systems.Execute(); systems.Cleanup(); }
private void Update() { _systems.Execute(); _systems.Cleanup(); }