Beispiel #1
0
        protected virtual void GroupSystemActiveGroupDownEventHandler(TetrisDB.ActiveGroupDownEvent data, GroupComponent group)
        {
            var handler = new GroupSystemActiveGroupDownEventHandler();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }
Beispiel #2
0
        protected void GroupSystemActiveGroupDownEventFilter(TetrisDB.ActiveGroupDownEvent data)
        {
            var GroupComponentItems = GroupComponentManager.Components;

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