void HandlePhysicsPostStep(PhysicsPostStepEvent e) { Object[] args = new Object[1] { e.TimeStep }; foreach (var item in cscomponents) { var info = item.Key; var PhysicsPostStepMethod = info.PhysicsPostStepMethod; if (PhysicsPostStepMethod == null) { continue; } foreach (var csc in item.Value) { if (!csc.Started || !csc.IsEnabled()) { continue; } PhysicsPostStepMethod.Invoke(csc, args); } } }
void HandlePhysicsPostStep(PhysicsPostStepEvent e) { Object[] args = new Object[1] { e.TimeStep }; foreach (var item in cscomponents) { var info = item.Key; var PhysicsPostStepMethod = info.PhysicsPostStepMethod; if (PhysicsPostStepMethod == null) continue; foreach (var csc in item.Value) { if (!csc.Started || !csc.IsEnabled()) continue; PhysicsPostStepMethod.Invoke(csc, args); } } }