コード例 #1
0
ファイル: HybridViewSystem.cs プロジェクト: bsymon/ECS-Match3
        // LIFE-CYCLE

        protected override void OnCreateManager()
        {
            blocksWithAnimationQuery = GetEntityQuery(
                ComponentType.ReadOnly <Block>(),
                ComponentType.ReadOnly <Hybrid.Runtime.ForwardAnimationEvents>()
                );

            highlightBlocksQuery = GetEntityQuery(
                ComponentType.ReadOnly <Block>(),
                ComponentType.ReadOnly <HighligthCommand>()
                );

            deleteBlocksQuery = GetEntityQuery(
                ComponentType.ReadOnly <Block>(),
                ComponentType.ReadOnly <DeleteCommand>()
                );

            cmdBuffer     = World.GetOrCreateSystem <ViewCmdBuffer>();
            viewCmdStack  = CommandStack.Get <ViewCommandStack>(100);
            pendingDelete = new List <Entity>();
        }
コード例 #2
0
ファイル: ViewSystem.cs プロジェクト: bsymon/ECS-Match3
        // LIFE-CYCLE

        override protected void OnCreateManager()
        {
            cmdBuffer    = World.GetOrCreateSystem <ViewCmdBuffer>();
            viewCmdStack = CommandStack.Get <ViewCommandStack>(100);
            levelQuery   = GetEntityQuery(ComponentType.ReadOnly <LevelInfo>());
        }