//public IEnumerator Coroutine { get { return coroutine; } } void Awake() { GetAudioSource = GetComponent <AudioSource>(); storyOptionsManager = FindObjectOfType <StoryOptionsManager>(); storyCompletion = FindObjectOfType <StoryCompletionManager>(); audioUIControlManager = FindObjectOfType <AudioUIControlManager>(); ResetScriptableObjectsProperties(); }
void Awake() { audioSource = GetComponent <AudioSource>(); exhibitAudioManager = FindObjectOfType <ExhibitAudioManager>(); npc = FindObjectOfType <NPCManager>(); storyCompletionManager = FindObjectOfType <StoryCompletionManager>(); defaultPauseSprite = playPauseIcon.GetComponent <Image>().sprite; defaultTalkingIndicatorSprite = npcTalkingIndicatorIcon.sprite; playPauseButton.gameObject.SetActive(false); skipButton.gameObject.SetActive(false); npcTalkingIndicator.gameObject.SetActive(false); npc.gameObject.SetActive(false); }
private void Awake() { exhibitAudioManager = FindObjectOfType <ExhibitAudioManager>(); storyCompletion = FindObjectOfType <StoryCompletionManager>(); audioUIControlManager = FindObjectOfType <AudioUIControlManager>(); }