public void Reset() { for (index = 0, length = arbiters.Count; index < length; index++) { ArbiterClone cc = arbiters[index]; cc.Reset(); WorldClone.poolArbiterClone.GiveBack(cc); } }
public void Reset() { if (clonedPhysics != null) { foreach (RigidBodyClone cc in clonedPhysics.Values) { cc.Reset(); poolRigidBodyClone.GiveBack(cc); } } if (collisionIslands != null) { for (index = 0, length = collisionIslands.Count; index < length; index++) { CollisionIslandClone cc = collisionIslands[index]; cc.Reset(); poolCollisionIslandClone.GiveBack(cc); } } if (cloneCollision != null) { cloneCollision.Reset(); } if (clonedArbiters != null) { for (index = 0, length = clonedArbiters.Count; index < length; index++) { ArbiterClone cc = clonedArbiters[index]; cc.Reset(); poolArbiterClone.GiveBack(cc); } } if (clonedArbitersTrigger != null) { for (index = 0, length = clonedArbitersTrigger.Count; index < length; index++) { ArbiterClone cc = clonedArbitersTrigger[index]; cc.Reset(); poolArbiterClone.GiveBack(cc); } } }