// 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();
 }
 // Use this for initialization
 void Awake()
 {
     questsUI   = FindObjectOfType <QuestsUI>();
     triskelion = transform.Find("Triskelion");
 }
Exemple #3
0
 private void Awake()
 {
     equippedDict = new Dictionary <WorldItems.WorldItemTypes, EquipableWorldItem>();
     questsUI     = FindObjectOfType <QuestsUI>();
 }