protected virtual void GUISystemHandVisibleRedEventHandler(TetrisDB.HandVisibleEvent data, RedLightComponent group) { var handler = new GUISystemHandVisibleRedEventHandler(); handler.System = this; handler.Event = data; handler.Group = group; StartCoroutine(handler.Execute()); }
protected void GUISystemHandVisibleGreenEventFilter(TetrisDB.HandVisibleEvent data) { var GreenLightComponentItems = GreenLightComponentManager.Components; for (var GreenLightComponentIndex = 0 ; GreenLightComponentIndex < GreenLightComponentItems.Count; GreenLightComponentIndex++ ) { if (!GreenLightComponentItems[GreenLightComponentIndex].Enabled) { continue; } this.GUISystemHandVisibleGreenEventHandler(data, GreenLightComponentItems[GreenLightComponentIndex]); } }
protected void GUISystemHandVisibleRedEventFilter(TetrisDB.HandVisibleEvent data) { var RedLightComponentItems = RedLightComponentManager.Components; for (var RedLightComponentIndex = 0 ; RedLightComponentIndex < RedLightComponentItems.Count; RedLightComponentIndex++ ) { if (!RedLightComponentItems[RedLightComponentIndex].Enabled) { continue; } this.GUISystemHandVisibleRedEventHandler(data, RedLightComponentItems[RedLightComponentIndex]); } }