Exemplo n.º 1
0
 protected virtual void Awake()
 {
     try
     {
         HelperNoteLabel.Init();
         //MidiPlayerGlobal.Init();
         audiosources = new List <AudioSource>();
     }
     catch (System.Exception ex)
     {
         MidiPlayerGlobal.ErrorDetail(ex);
     }
 }
Exemplo n.º 2
0
        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();
        }