protected override void OnCreate() { base.OnCreate(); FinalJobHandle = default; m_PhysicsWorldSystem = World.GetOrCreateSystem <PhysicsWorldSystem>(); m_StepPhysicsWorldSystem = World.GetOrCreateSystem <StepPhysicsWorldSystem>(); }
protected override void OnCreate() { base.OnCreate(); HandlesToWaitFor = new NativeList <JobHandle>(16, Allocator.Persistent); FinalJobHandle = default; m_PhysicsWorldSystem = World.GetOrCreateSystem <PhysicsWorldSystem>(); m_SimulateWorldSystem = World.GetOrCreateSystem <StepPhysicsWorldSystem>(); m_ExportPhysicsWorld = World.GetOrCreateSystem <ExportPhysicsWorldSystem>(); }