when I use this code it will play audio if i click anywhere of the screen.
void Update () {
if (Input.GetKeyDown (KeyCode.Space) || Input.GetMouseButton (0)) {
audio.Play ();
}
when I use this code it will play audio if i click anywhere of the screen.
void Update () {
if (Input.GetKeyDown (KeyCode.Space) || Input.GetMouseButton (0)) {
audio.Play ();
}
please refer this
Have you actually read the last bit in my answer?
ā Bunny83