Ejemplo n.º 1
0
        protected virtual void SetUp()
        {
            World = new World("Test World");

            m_Manager      = World.EntityManager;
            m_ManagerDebug = new EntityManager.EntityManagerDebug(m_Manager);

            m_AnimationGraphSystem = World.GetOrCreateSystem <PreAnimationGraphSystem>();
            m_AnimationGraphSystem.AddRef();
        }
        protected override void OnCreate()
        {
            base.OnCreate();
            m_GraphSystem = World.GetOrCreateSystem <PreAnimationGraphSystem>();
            // Increase the reference count on the graph system so it knows
            // that we want to use it.
            m_GraphSystem.AddRef();
            m_ECBSystem = World.GetOrCreateSystem <EndSimulationEntityCommandBufferSystem>();

            m_AnimationDataQuery = GetEntityQuery(new EntityQueryDesc()
            {
                None = new ComponentType[] { typeof(PlayClipComponent) },
                All  = new ComponentType[] { typeof(PlayClipStateComponent) }
            });

            m_GraphSystem.Set.RendererModel = NodeSet.RenderExecutionModel.Islands;
        }