How can you update using the following code function to play a sound once?
Answer
Correct Answer: if (Input.GetAxisRaw("Vertical") > 0 || Input.GetKey (KeyCode.Joystick1Button2)){ if (accelerate == false){ audio.Play(); } accelerate = true; } else{ accelerate = false; }
Explanation:
Note: This Question is unanswered, help us to find answer for this one