Question by
Dismixed · Jul 11, 2018 at 02:46 PM ·
c#audioaudiosourceaudio.play
Sound not Playing on Left Mouse Button being pressed,Sound Not Playing when I click the left mouse button
The sound is not playing when I click
Code:
AudioSource audioData;
void Start () {
audioData = GetComponent<AudioSource>() ;
}
void Update () {
if (Input.GetMouseButtonDown(0));
{
audioData.Play();
}
}
Comment
Your answer
Follow this Question
Related Questions
Playing multiple sounds at the same time? 1 Answer
audio script 1 Answer
Play multiple sounds from one object 1 Answer
Playing Through a Queue/List of Audio Sources, One at a Time 1 Answer
Audio doesn't sound 0 Answers