I’m working in a project with a bunch of activities. I added music to each scene and SFX to some action (destroy objects, touch things, etc). All work fine in the editor, but when i build the “game”, the music work fine but the SFX’s… just don’t sound.
Tried with 2D or 3D sound, from AudioSource or loading the clip from C#. Tried with PlayOneShot, PlayClipAtPoint, load in memory and just play, but no luck… right now i just don’t know what i’m doing wrong
Current code:
if (other.tag == "Enemy")
{
other.GetComponent<Enemy>().Hit();
GM.puntaje += 1;
//AudioSource.PlayClipAtPoint(Choco, Camera.main.transform.position);
if(!Coin.isPlaying)
Coin.Play();
}
Any idea of what could be the problem? Working on Unity3D 4.1.2f1