Esempio n. 1
0
        protected virtual void GroupSystemActiveGroupRotateEventHandler(TetrisDB.ActiveGroupRotateEvent data, GroupComponent group)
        {
            var handler = new GroupSystemActiveGroupRotateEventHandler();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }
Esempio n. 2
0
        protected void GroupSystemActiveGroupRotateEventFilter(TetrisDB.ActiveGroupRotateEvent data)
        {
            var GroupComponentItems = GroupComponentManager.Components;

            for (var GroupComponentIndex = 0
                 ; GroupComponentIndex < GroupComponentItems.Count; GroupComponentIndex++
                 )
            {
                if (!GroupComponentItems[GroupComponentIndex].Enabled)
                {
                    continue;
                }
                this.GroupSystemActiveGroupRotateEventHandler(data, GroupComponentItems[GroupComponentIndex]);
            }
        }