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