using System.Collections; using System.Collections.Generic; using UnityEngine; public class FireGun : MonoBehaviour { FMOD.Studio.EventInstance PlayGunSound; void Awake () { PlayGunSound = FMODUnity.RuntimeManager.CreateInstance ("event:/Music/Music2"); } void Update () { if (Input.GetKeyDown (KeyCode.Mouse0)) { PlayGunSound.start (); } } }