What if I use enable and disable for the audio?

At First as I challenge myself to make audio works in my game without following the instruction, when I check the answer, I found that we should use Audio Play Audio Stop, but I realize it is much more complex than simply using Enable true/false, I am new to Unity, So I want to know if my practice is bad

Bad not really, its just something completely different.
One plays and stops audio, other turns player on and off,
but sure for a single audio clip it both works.

1 Like

Hi @_key_8,

Welcome to our community! :slight_smile:

In many cases, there are multiple ways to make something work in Unity, and Rick cannot show all of them. If your code works, it’s a solution by definition. If you don’t encounter any issues, don’t worry about potential problems because we are game developers, not clairvoyants. :wink:


See also:

Thanks for the answer!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms