Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

C# Problem With Audio OnMouseEnter

$
0
0
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 :
Code (CSharp):
  1. void...
C# Problem With Audio OnMouseEnter

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>