コード例 #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);
 }