Hi, I'm trying to make a phone ring and when you get near it the ringing stops and a voice audio takes its place. I just can't seem to do it though. I wrote the script but it says "Play" isnt part of Unity Engine Audio Clip. Here is my script:
Play() is for an audio source, not an audio clip. You have to assign the audio clip to the audio source if you haven't already, then do `audio.Play()`, assuming that the audio source you want to play is attached to the same object that the script is. Or if the audio source is on the other object: