Amend Me
This commit is contained in:
@@ -7,6 +7,8 @@ namespace Syntriax.Engine.Physics2D;
|
||||
|
||||
public class PhysicsCoroutineManager : UniverseObject
|
||||
{
|
||||
private readonly Event<IUniverse, IUniverse.UpdateArguments>.EventHandler cachedOnUpdate = null!;
|
||||
|
||||
private readonly List<IEnumerator> enumerators = [];
|
||||
private IPhysicsEngine2D? physicsEngine = null;
|
||||
|
||||
@@ -49,7 +51,7 @@ public class PhysicsCoroutineManager : UniverseObject
|
||||
universe.OnUpdate.RemoveListener(OnUpdate);
|
||||
}
|
||||
|
||||
private void OnUpdate(IUniverse sender, UniverseTime engineTime)
|
||||
private void OnUpdate(IUniverse sender, IUniverse.UpdateArguments arguments)
|
||||
{
|
||||
if (Universe is not IUniverse universe)
|
||||
return;
|
||||
@@ -61,4 +63,9 @@ public class PhysicsCoroutineManager : UniverseObject
|
||||
universe.OnUpdate.RemoveListener(OnUpdate);
|
||||
}
|
||||
}
|
||||
|
||||
public PhysicsCoroutineManager()
|
||||
{
|
||||
cachedOnUpdate = OnUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user