public void Setup(DiaPlayerLine TempChild) { TempChildStorage = TempChild; QH = GameObject.Find("QuestsHolder").GetComponent <QuestsHolder>(); TextMeshProUGUI textRef = transform.GetComponent <TextMeshProUGUI>(); pressable = TempChild.Check_Accessible(textRef); diaParent = GameObject.Find("DialogueMenu").GetComponent <DiaParent>(); }
private bool SetupPlayerLines(Transform selectedLine) { bool is_playerLines = false; foreach (Transform child in selectedLine) { if (child.gameObject.activeSelf) { DiaPlayerLine TempChild = child.GetComponent <DiaPlayerLine>(); is_playerLines = true; GameObject temp = Instantiate(PlayerLinePrefab, DiaPlayerPanel); temp.GetComponent <DiaPlayerUIPrefab>().Setup(TempChild); } } Instantiate(BottomSpacerPrefab, DiaPlayerPanel); return(is_playerLines); }