using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MusicScript : MonoBehaviour {

    [FMODUnity.EventRef]
    public string musicPlayer;
    public FMOD.Studio.EventInstance musicInstance;


	void Start () {
        musicInstance = FMODUnity.RuntimeManager.CreateInstance(musicPlayer);
       // FMODUnity.RuntimeManager.AttachInstanceToGameObject(musicInstance, GetComponent<Transform>(), GetComponent<Rigidbody>());
        musicInstance.start();
    }
	

}
