c# – Audio Not Playing In Unity Script

I was coding a script in unity and then I tried to make it so that makes it so audio plays 2 seconds after another audio is played. I did this by making the script wait 2 more seconds than the audio length of the audio clip before it. I used PlayOneShot to play audio. There were no errors in the script but still the audio was not played I did drag it in with the inspector.

Here’s my code:

(Didn’t let me paste code in so just using image)

Code

Here’s proof that the audio is put in the inspector:

Proof

Read more here: Source link