Hi,
I've spent 2 hours trying to resolve this, and i feel very very dumb... This is really simple, and i'm sure there is an easy way ( iam not aware of -_- ) to do it.
OnMouseEnter i play an audioclip. Obviously i want the clip to be played only if it's not already playing...
I'v tried with bools (OnMousEnter/Exit) + a couroutine (Waitforseconds(myclip.length) but that doesn't work. Don't ask me why... I went crazy and erased all the code.
The last thing i tried was :
C# Problem With Audio OnMouseEnter
I've spent 2 hours trying to resolve this, and i feel very very dumb... This is really simple, and i'm sure there is an easy way ( iam not aware of -_- ) to do it.
OnMouseEnter i play an audioclip. Obviously i want the clip to be played only if it's not already playing...
I'v tried with bools (OnMousEnter/Exit) + a couroutine (Waitforseconds(myclip.length) but that doesn't work. Don't ask me why... I went crazy and erased all the code.
The last thing i tried was :
Code (CSharp):
- void...