Exemplo n.º 1
0
        // Changed from start(); which is not valid
        // Also, this may need to be "Start" (note the difference in casing)
        void start()
        {
	       audio = (AudioSource)AudioClip.AddComponent ("AudioSource");
	       AudioClip myAudioClip;
	       myAudioClip = (AudioClip)Resources.Load("SFX/DoNotQuestionTheAdventureVoice");
	       audio.clip = myAudioClip;
        }