Example #1
0
 private static void Update()
 {
     foreach (IEntityManager manager in _container.Managers)
     {
         try
         {
             DateTime tmp = DateTime.UtcNow;
             manager.Update(tmp);
         }
         catch (Exception e)
         {
             Log.Error("[TICK]", e);
             _container.Unregister(manager);
         }
     }
 }
Example #2
0
 public void StopSystemUpdate()
 {
     ShouldUpdate = false;
     EmContainer.Unregister(this);
 }