Пример #1
0
 // Use this for initialization
 void Start()
 {
     translationUI          = FindObjectOfType <TranslationUI>();
     vocabTranslationListUI = FindObjectOfType <VocabTranslationListUI>();
     tagsListBtn            = transform.Find("TagsListBtn").GetComponent <Button>();
     tagsList          = GetPanel().GetComponentInChildren <GridLayoutGroup>().gameObject;
     tagDetails        = GetPanel().transform.Find("SubmitTagDetails").gameObject;
     tagDetailsBtn     = tagDetails.GetComponentInChildren <Button>();
     tagDetailsBtnText = tagDetailsBtn.GetComponentInChildren <Text>();
     tagDetailsInput   = tagDetails.transform.Find("Panel").GetComponentInChildren <InputField>();
     selectedTag       = "SelectedTag";
     CreateSelectionToggleGroup(selectedTag);
 }
Пример #2
0
        void Start()
        {
            vocabTranslationListUI = FindObjectOfType <VocabTranslationListUI>();
            grammarRulesBtn        = transform.Find("GrammarRulesBtn").gameObject.GetComponent <Button>();

            proficienciesListUI = FindObjectOfType <ProficienciesListUI>();
            grammarListUIpanel  = transform.Find("Panel").gameObject;
            grammarList         = grammarListUIpanel.GetComponentInChildren <GridLayoutGroup>().gameObject;
            //adding and editing
            submitNewGrammarRule      = grammarListUIpanel.transform.Find("SubmitNewRule").gameObject;
            activateGrammarDetailsBtn = submitNewGrammarRule.transform.Find("ActivateNewRuleBtn").gameObject;
            newGrammarRulePanel       = submitNewGrammarRule.transform.Find("NewRulePanel").gameObject;
            inputRuleSdescTxt         = newGrammarRulePanel.transform.Find("InputShortDescriptionText").GetComponent <InputField>();
            inputRuleLdescTxt         = newGrammarRulePanel.transform.Find("InputLongDescriptionText").GetComponent <InputField>();
            viewGrammarDetailsBtnText = activateGrammarDetailsBtn.GetComponent <Text>();
            translationUI             = FindObjectOfType <TranslationUI>();
            selectedGrammarRule       = "SelectedGrammarRule";
            CreateSelectionToggleGroup(selectedGrammarRule);
        }