private void Awake() { childImages = GetComponentsInChildren <Image>(); childTexts = GetComponentsInChildren <Text>(); instance = this; }
private void Awake() { Instance = this; playTimeUI = PlayTimeUI.instance; Transform transformDialogue = transform.Find("Dialogue"); Transform transformDialogueOptions = transform.Find("DialogueOptions"); dTexts = transformDialogue.GetComponentsInChildren <Text>(); dImages = transformDialogue.GetComponentsInChildren <Image>(); dOTexts = transformDialogueOptions.GetComponentsInChildren <Text>(); dOImages = transformDialogueOptions.GetComponentsInChildren <Image>(); }