Ejemplo n.º 1
0
    void OnCrescendoBegin(object sender, ButtonSoundMgr.ButtonCrescendoEventArgs e)
    {
        if (!ButtonEffectEnabled)
         return;

          if (e.Group == MIDIGroup)
          {
         Debug.Log("Crescendo BEGIN for group '" + e.Group.ToString());

         //trigger looping button effect
         if (ButtonEffect != null)
            ButtonEffect.Trigger(this, true, null);

          }
    }
Ejemplo n.º 2
0
    void OnCrescendoEnd(object sender, ButtonSoundMgr.ButtonCrescendoEventArgs e)
    {
        if (!ButtonEffectEnabled)
         return;

          if (e.Group == MIDIGroup)
          {
         Debug.Log("Crescendo END for group '" + e.Group.ToString());

         //stop looping button effect
         if (ButtonEffect != null)
         {
            //reset all lights in group, so nothing lingers...
            EightNightsMgr.Instance.SetAllLightsInGroup(MIDIGroup, 0.0f);
            ButtonEffect.KillEffect();
         }
          }
    }
Ejemplo n.º 3
0
 void OnCrescendoEnd(object sender, ButtonSoundMgr.ButtonCrescendoEventArgs e)
 {
     //turn off lights at end of crescendo to allow for music FX to come through
       if (ProceduralButtonFX)
       {
      SetAllLightsInGroup(e.Group, 0.0f, GetDefaultColor(e.Group), .25f);
       }
 }
Ejemplo n.º 4
0
 void Awake()
 {
     Instance = this;
 }