protected virtual void GUISystemGameExitEventHandler(TetrisDB.GameExitEvent data, MenuComponent group) { var handler = new GUISystemGameExitEventHandler(); handler.System = this; handler.Event = data; handler.Group = group; StartCoroutine(handler.Execute()); }
protected void GUISystemGameExitEventFilter(TetrisDB.GameExitEvent data) { var MenuComponentItems = MenuComponentManager.Components; for (var MenuComponentIndex = 0 ; MenuComponentIndex < MenuComponentItems.Count; MenuComponentIndex++ ) { if (!MenuComponentItems[MenuComponentIndex].Enabled) { continue; } this.GUISystemGameExitEventHandler(data, MenuComponentItems[MenuComponentIndex]); } }