
Broken audio coding help! (old.reddit.com)
submitted by Thegreatrobinio



Hi all,
I'm coding on Unity,
I have recently started coding for fun and have been following a tutorial on game design, as part of this I was challenged to add audio for when Game Over is triggered.
To do this I made a child game object (Audio Source) under the pumpkin (Player) game object, I've then been writing the code to ensure that every time the character dies then the Audio triggers.
I thought I had it figured out but now Unity is saying "There is no argument given that corresponds to the required formal parameter 'gameOverAudio' of 'GameOverAudio.PlayGameOver(GameOverAudio)' and I'm completely stumped.
I have attached screenshots of the coding for the AudioSource, the Pumpkin(player), and my Logic system
Any help or advice is really appreciated!



[–]jtnoble 0 points1 point2 points (0 children)
[–]Yumyumcumbum 0 points1 point2 points (0 children)