protected virtual void Awake() { try { HelperNoteLabel.Init(); //MidiPlayerGlobal.Init(); audiosources = new List <AudioSource>(); } catch (System.Exception ex) { MidiPlayerGlobal.ErrorDetail(ex); } }
void Awake() { //Debug.Log("Awake InfinityMusic"); HelperNoteLabel.Init(); // Event set in Inspector //if (MidiPlayerGlobal.OnEventPresetLoaded != null) // MidiPlayerGlobal.OnEventPresetLoaded.AddListener(() => EndLoadingSF()); instance = this; LastDateTick = DateTime.Now; ScaleDefinition.Init(); HelperNoteLabel.Init(); HelperNoteRatio.Init(); }