// public AudioClip ChoiceSE; //AudioSource Aud; // Use this for initialization void Start() { this.Shutter = GameObject.Find("Shutter"); ShutterAnim = Shutter.GetComponent <Animator>(); //this.Aud = GetComponent<AudioSource>(); this.AudShutter = GetComponent <AudioSource>(); this.TitleStop = GameObject.Find("TitleAudio").GetComponent <TitleAudio>(); }
IEnumerator WaitForNextScene() { TitleAudio.StopAudio(); TitleAudio.Select.Play(); Debug.Log("Waiting"); yield return(new WaitForSeconds(3f)); Debug.Log("Loading Scene"); SceneManager.LoadScene("StoryScene"); }
//public AudioClip ChoiceSE; //AudioSource Aud; // Use this for initialization void Start() { this.Shutter = GameObject.Find("Shutter"); ShutterAnim = Shutter.GetComponent <Animator>(); this.getHelpOn = GameObject.FindGameObjectWithTag("HelpOn"); this.HelpON = getHelpOn.GetComponent <HelpON>(); this.TitleStop = GameObject.Find("TitleAudio").GetComponent <TitleAudio>(); //this.Aud = GetComponent<AudioSource>(); this.AudShutter = GetComponent <AudioSource>(); }