Ejemplo n.º 1
0
        protected override void OnCreate()
        {
            base.OnCreate();

            FinalJobHandle = default;

            m_PhysicsWorldSystem     = World.GetOrCreateSystem <PhysicsWorldSystem>();
            m_StepPhysicsWorldSystem = World.GetOrCreateSystem <StepPhysicsWorldSystem>();
        }
Ejemplo n.º 2
0
        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>();
        }