// Initialization. Guarantees deactivated buttons, deactivated eventsystem, deactivated inDialogue, faded dialogueBox and correct dialogue volume private void Start() { buttonBehavior.deactivateButtons(m_Button); autoPlay = MenuFunctions.dialogueAutoplay; eventSystem = GameObject.Find("DialogueEventSystem"); eventSystem.SetActive(false); inDialogue = false; cloud = GameObject.Find("DialogueImage").GetComponent <Image>(); cloud.color = new Color(cloud.color.r, cloud.color.g, cloud.color.b, 0); cloudOriginalSize = cloud.rectTransform.sizeDelta; audio = GetComponent <AudioSource>(); audio.volume = Audio_Level.dialogueVolumeFraction; textShower = GetComponent <TextShower>(); }
void Awake() { narrator = Object.FindObjectOfType <TextShower>(); }
// Use this for initialization private void Awake() { _textShower = GetComponent <TextShower>(); }