Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     abilitiesUI    = FindObjectOfType <AbilitiesUI>();
     underAttackUI  = FindObjectOfType <UnderAttackUI>();
     playerVitalsUI = FindObjectOfType <PlayerVitalsUI>();
     dialogueUI     = FindObjectOfType <DialogueUI>();
     npcController  = FindObjectOfType <NPCs>();
     //currentAbility = CombatAbilities.passive;
     playerCharacter       = FindObjectOfType <PlayerCharacter>();
     SelectedAbilityOption = "selectedAbilityOption";
     CreateSelectionToggleGroup(SelectedAbilityOption);
     HideAbilities();
     HideUnderAttack();
     HidePlayerVitals();
 }
Ejemplo n.º 2
0
 // 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();
 }