// Use this for initialization void Start() { dialogueUI = FindObjectOfType <DialogueUI>(); combatUI = FindObjectOfType <CombatUI>(); notificationQueue = FindObjectOfType <NotificationQueue>(); selectedQuest = "selectedQuest"; CreateSelectionToggleGroup(selectedQuest); questDict = new Dictionary <string, Quest>(); questsList = GetPanel().transform.Find("QuestsScroller").Find("QuestsList").gameObject; questDetailsList = GetPanel().transform.Find("QuestDetailsScroller").Find("QuestDetailsList").gameObject; questTasksList = questDetailsList.transform.Find("SelectedQuestTasksList").gameObject; selectedQuestTitleLbl = questDetailsList.transform.Find("SelectedQuestTitleLbl").GetComponent <Text>(); selectedQuestDescriptionLbl = questDetailsList.transform.Find("SelectedQuestDescriptionLbl").GetComponent <Text>(); DisplayQuests(); FillQuestDictionary(); }
// Use this for initialization void Start() { dialogueHolder = DialogueHolder.instance.gameObject; skillsMenuUI = FindObjectOfType <SkillsMenuUI>(); dialogueQueue = new List <String>(); questsUI = FindObjectOfType <QuestsUI>(); newWelshLearnedUI = FindObjectOfType <NewWelshLearnedUI>(); npcs = FindObjectOfType <NPCs>(); playerCharacter = FindObjectOfType <PlayerCharacter>(); panel = transform.Find("Panel").gameObject; submitBtn = panel.transform.Find("SubmitBtn").gameObject; dialogueReason = panel.transform.Find("DialogueReason").gameObject; percentageTxt = dialogueReason.transform.Find("TestResult").GetComponent <Text>(); percentageBtn = percentageTxt.GetComponent <Button>(); reasonImg = dialogueReason.transform.Find("Symbol").GetComponent <Image>(); combatUI = FindObjectOfType <CombatUI>(); btnTxt = submitBtn.transform.Find("Text").gameObject.GetComponent <Text>(); playerCharacter = FindObjectOfType <PlayerCharacter>(); objPortrait = panel.transform.Find("CharacterPortrait").GetComponent <Image>(); DisableSubmitBtn(); }