Esempio n. 1
0
        protected virtual void SpawnEventGroupShouldSpawnEventHandler(TetrisDB.GroupShouldSpawnEvent data, SpawnComponent group)
        {
            var handler = new SpawnEventGroupShouldSpawnEventHandler();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }
Esempio n. 2
0
        protected void SpawnEventGroupShouldSpawnEventFilter(TetrisDB.GroupShouldSpawnEvent data)
        {
            var SpawnComponentItems = SpawnComponentManager.Components;

            for (var SpawnComponentIndex = 0
                 ; SpawnComponentIndex < SpawnComponentItems.Count; SpawnComponentIndex++
                 )
            {
                if (!SpawnComponentItems[SpawnComponentIndex].Enabled)
                {
                    continue;
                }
                this.SpawnEventGroupShouldSpawnEventHandler(data, SpawnComponentItems[SpawnComponentIndex]);
            }
        }
        private System.Collections.IEnumerator ActionNode31_yes()
        {
            // SetVariableNode
            while (this.DebugInfo("b77ce3ed-39d6-4f12-b4eb-b27fd3f871ab", "f5e9860e-5ebd-4122-bf6f-3b1c5acbe0b0", this) == 1)
            {
                yield return(null);
            }
            Group.isActive = (System.Boolean)BoolNode33;
            // PublishEventNode
            while (this.DebugInfo("f5e9860e-5ebd-4122-bf6f-3b1c5acbe0b0", "e3f5e492-b904-4a14-8c5a-b773be0bbca3", this) == 1)
            {
                yield return(null);
            }
            var PublishEventNode34_Event = new GroupShouldSpawnEvent();

            System.Publish(PublishEventNode34_Event);
            PublishEventNode34_Result = PublishEventNode34_Event;
            yield break;
        }
Esempio n. 4
0
        private System.Collections.IEnumerator ActionNode62_yes()
        {
            // SetVariableNode
            while (this.DebugInfo("fbc0865e-3e1d-4bcc-a6e3-e77a4f5ddd06", "622f14df-f20a-41fd-aacb-8fde23e6e744", this) == 1)
            {
                yield return(null);
            }
            Group.isActive = (System.Boolean)BoolNode33;
            // PublishEventNode
            while (this.DebugInfo("622f14df-f20a-41fd-aacb-8fde23e6e744", "07bbc684-5d71-4a13-bed3-85b36cb8a326", this) == 1)
            {
                yield return(null);
            }
            var PublishEventNode34_Event = new GroupShouldSpawnEvent();

            System.Publish(PublishEventNode34_Event);
            PublishEventNode34_Result = PublishEventNode34_Event;
            yield break;
        }