Example #1
0
 private static bool IsLogicExpired(PhysicsLogic logic)
 {
     if (logic.Lifetime.IsExpired)
     {
         logic.OnRemovedInternal();
         return true;
     }
     return false;
 }
Example #2
0
 /// <summary>
 /// Adds a PhysicsLogic to the pending queue and will be truly added on a call to Update.
 /// </summary>
 /// <param name="item">The PhysicsLogic to be added.</param>
 public void AddLogic(PhysicsLogic item)
 {
     CheckChild(item);
     lock (pendingLogics)
     {
         pendingLogics.Add(item);
     }
 }