private void Awake() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerCharacter>(); playerCharacterUI = GameObject.FindGameObjectWithTag("CharacterCanvas").GetComponentInChildren <PlayerCharacterUI>(); gainsUI = GameObject.FindGameObjectWithTag("GainsCanvas").GetComponent <GainsUI>(); skillsUI = GameObject.FindGameObjectWithTag("SkillCanvas").GetComponentInChildren <SkillsUI>(); inventoryUI = GameObject.FindGameObjectWithTag("InventoryCanvas").GetComponentInChildren <InventoryUI>(); uiEffects = GameObject.FindGameObjectWithTag("EffectsCanvas").GetComponent <UIEffects>(); dialogueSelectionUI = GameObject.FindGameObjectWithTag("DialogueCanvas").GetComponentInChildren <DialogueSelectionUI>(); actualDialogueUI = GameObject.FindGameObjectWithTag("DialogueCanvas").GetComponentInChildren <DialogueUI>(); questUI = GameObject.FindGameObjectWithTag("QuestCanvas").GetComponentInChildren <QuestUI>(); }
// Start is called before the first frame update void Start() { gainsUI = GetComponentInParent <GainsUI>(); }