protected override void OnCreate() { base.OnCreate(); m_syncPlayback = World.CreateSystem <SyncPointPlaybackSystem>(); m_sceneManager = World.CreateSystem <SceneManagerSystem>(); m_mergeGlobals = World.CreateSystem <MergeGlobalsSystem>(); m_destroySystem = World.CreateSystem <DestroyEntitiesOnSceneChangeSystem>(); m_cleanupGroup = World.CreateSystem <ManagedComponentsReactiveSystemGroup>(); m_syncGroup = World.GetOrCreateSystem <LatiosSyncPointGroup>(); }
protected override void OnCreate() { base.OnCreate(); m_syncPlayback = World.CreateSystem <SyncPointPlaybackSystem>(); m_sceneManager = World.CreateSystem <SceneManagerSystem>(); m_mergeGlobals = World.CreateSystem <MergeBlackboardsSystem>(); m_destroySystem = World.CreateSystem <DestroyEntitiesOnSceneChangeSystem>(); m_cleanupGroup = World.CreateSystem <ManagedComponentsReactiveSystemGroup>(); m_syncGroup = World.GetOrCreateSystem <LatiosWorldSyncGroup>(); m_preSyncGroup = World.GetOrCreateSystem <PreSyncPointGroup>(); AddSystemToUpdateList(m_syncPlayback); AddSystemToUpdateList(m_sceneManager); AddSystemToUpdateList(m_destroySystem); AddSystemToUpdateList(m_syncGroup); AddSystemToUpdateList(m_preSyncGroup); m_syncGroup.AddSystemToUpdateList(m_mergeGlobals); m_syncGroup.AddSystemToUpdateList(m_cleanupGroup); }