03-31-2020, 06:46 PM
So, I've got a question that once again you may or may not be able to answer and that is fine.
I've got an Audio Source on my player character avatar so it constantly makes a noise when the game is active.
I've got it set to "play on awake" and it starts playing as soon as the 'press R to start' screen comes up.
I am trying to figure out if there is some way I can make it so the audio doesn't start (and/or take other actions) until after the player hits R to start. Looking at the VZPlayer code it seems like it would be pretty easy but everything I try doesn't work - I tried setting it NOT to play on Awake and then tried adding code to start it up at certain points but it seems like I'm putting it in the wrong spot because it still plays immediately on entering the game but before pressing R to drop the transition canvas.
I've got an Audio Source on my player character avatar so it constantly makes a noise when the game is active.
I've got it set to "play on awake" and it starts playing as soon as the 'press R to start' screen comes up.
I am trying to figure out if there is some way I can make it so the audio doesn't start (and/or take other actions) until after the player hits R to start. Looking at the VZPlayer code it seems like it would be pretty easy but everything I try doesn't work - I tried setting it NOT to play on Awake and then tried adding code to start it up at certain points but it seems like I'm putting it in the wrong spot because it still plays immediately on entering the game but before pressing R to drop the transition canvas.