I'm trying to play some sounds on my cubes but no luck I have a cheers.wav in my /assets/sounds and i'm calling it like this:

Sound cheers = Sounds.CreateSound("cheers");
cheers.Play(1,0);

changing the name throws an exception in the CreateSound() Method, so I know its loading it

有帮助吗?

解决方案

They are wav and mp3, although some wav's did not work for me, mp3 works fine

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top