private void SetButtonListener(GUI_TabButton buttonInstance, EType type) { buttonInstance.SetButtonName(type.ToString()); if (type == EType.Game) { buttonInstance.GetButton().onClick.AddListener(CreateGame); } else if (type == EType.PL1Structure) { buttonInstance.GetButton().onClick.AddListener(CreateModelRepresentation); } }
private void ButtonClickedListener(GUI_TabButton button) { SaveText(_currentPageInstance.Button as GUI_TextFieldButton, _field); ActivatePanel(GUI_TabNavigation.EType.Sentences); SetCurrentInstanceText(button as GUI_TextFieldButton); }