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); } }
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(); } } }
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); } }
void Awake() { Instance = this; }