예제 #1
0
 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);
     }
 }
예제 #2
0
 private void ButtonClickedListener(GUI_TabButton button)
 {
     SaveText(_currentPageInstance.Button as GUI_TextFieldButton, _field);
     ActivatePanel(GUI_TabNavigation.EType.Sentences);
     SetCurrentInstanceText(button as GUI_TextFieldButton);
 }