//public delegate void NotifyEvent(); //public static event NotifyEvent OnMelodyComplete; private void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }
// Start is called before the first frame update void Start() { instance = this; playerInstrument = GetComponent <AudioSource>(); }