Answer by superventure
Found a solution. I was close in my original attempt: if(animation["x"].enabled && animation["x"].time == 0) audio.clip = xsound; audio.Play(); When you think about it, all sound clips are...
View ArticleAnswer by efge
To play a sound once at the beginning you could play it in the function Start() or set your AudioSource in the inspector to PlayOnAwake true, Loop false. To play a sound once during Update() use a...
View ArticleAnswer by superventure
Found a solution. I was close in my original attempt: if(animation["x"].enabled && animation["x"].time == 0) audio.clip = xsound; audio.Play(); When you think about it, all sound clips are...
View ArticleAnswer by efge
To play a sound once at the beginning you could play it in the function Start() or set your AudioSource in the inspector to PlayOnAwake true, Loop false. To play a sound once during Update() use a...
View Article