Yes! that is the solution! it works. thank you Joseph Harvey.
but i have another problem, that work if a have the sound in a Studio Event Emitter, but when i use the script something missing, maybe activate the 3d panner in the script, but how?
public class EnemyMovement : MonoBehaviour
public string Playerstate2 = "event:/Music";
void Awake ()
player = GameObject.FindGameObjectWithTag ("Player").transform;
playerHealth = player.GetComponent <PlayerHealth> ();
enemyHealth = GetComponent <EnemyHealth> ();
nav = GetComponent <NavMeshAgent> ();
void Update ()
FMODUnity.RuntimeManager.PlayOneShot (Playerstate2 );
if(enemyHealth.currentHealth > 0 && playerHealth.currentHealth > 0)
nav.enabled = false;
if i use the 3d panner not work , only in the studio event emmiter. if i erase the 3d panner doesn´t sound.