예제 #1
0
 void Awake()
 {
     name = "MetronomeManager";
     if (instance == null) { instance = this; }
     metronomes = new Children<Metronome>(transform);
     AudioManager.instance.managers.AddChild (GetComponent<MetronomeManager>());
 }
예제 #2
0
 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");
 }
예제 #3
0
    public void PlayIdx(int idx) // test
    {
        Chord      c  = MetronomeManager.GetCurrentChord();
        ChordTones ct = fullChordArray[(int)c];

        if (ct != null)
        {
            ct.Play(idx);
        }
    }
예제 #4
0
 void Awake()
 {
     name = "MetronomeManager";
     if (instance == null)
     {
         instance = this;
     }
     metronomes = new Children <Metronome>(transform);
     AudioManager.instance.managers.AddChild(GetComponent <MetronomeManager>());
 }
예제 #5
0
    public void PlayRandom()
    {
        //lowerMusicVol();
        //turnOnReverb();
        Chord      c  = MetronomeManager.GetCurrentChord();
        ChordTones ct = fullChordArray[(int)c];

        if (ct != null)
        {
            ct.PlayRandom();
        }
    }