/// Gather the needed references in order to schedule the worker thread. protected override void OnCreate() { buildPhysicsWorld = World.GetOrCreateSystem <BuildPhysicsWorld>(); stepPhysicsWorld = World.GetOrCreateSystem <StepPhysicsWorld>(); jobBufferSystem = World.GetOrCreateSystem <BeginFixedStepSimulationEntityCommandBufferSystem>(); player = GetSingletonEntity <PlayerTag>(); }
/// <summary> /// Set up our physics to handle item collision /// </summary> protected override void OnCreate() { buildPhysicsWorld = World.GetOrCreateSystem <BuildPhysicsWorld>(); stepPhysicsWorld = World.GetOrCreateSystem <StepPhysicsWorld>(); bufferSystem = World.GetOrCreateSystem <BeginFixedStepSimulationEntityCommandBufferSystem>(); }