void Awake() { name = "MetronomeManager"; if (instance == null) { instance = this; } metronomes = new Children<Metronome>(transform); AudioManager.instance.managers.AddChild (GetComponent<MetronomeManager>()); }
void Start() { elementManager = (AudioElementManager)managers.GetChild("AudioElementManager"); eventManager = (AudioEventManager)managers.GetChild("AudioEventManager"); sendManager = (AudioSendManager)managers.GetChild("AudioSendManager"); energyManager = (EnergyManager)managers.GetChild("EnergyManager"); metronomeManager = (MetronomeManager)managers.GetChild("MetronomeManager"); }
public void PlayIdx(int idx) // test { Chord c = MetronomeManager.GetCurrentChord(); ChordTones ct = fullChordArray[(int)c]; if (ct != null) { ct.Play(idx); } }
void Awake() { name = "MetronomeManager"; if (instance == null) { instance = this; } metronomes = new Children <Metronome>(transform); AudioManager.instance.managers.AddChild(GetComponent <MetronomeManager>()); }
public void PlayRandom() { //lowerMusicVol(); //turnOnReverb(); Chord c = MetronomeManager.GetCurrentChord(); ChordTones ct = fullChordArray[(int)c]; if (ct != null) { ct.PlayRandom(); } }