protected override void ReactToEvent(UnityFunction unityFunction) { StudioEventEmitter emitter = AudioManager.Instance.EventPaths.GetEmitter(emitterType); foreach (KeyValuePair <string, float> pair in parameters[unityFunction].Parameters) { emitter.SetParameter(pair.Key, pair.Value); } }
protected override void ReactToEvent(UnityFunction unityFunction) { EventInstance eventInstance = audioFunction.GetInstance; foreach (KeyValuePair <string, float> pair in parameters[unityFunction].Parameters) { eventInstance.setParameterByName(pair.Key, pair.Value); } }
protected override void ReactToEvent(UnityFunction unityFunction) { EventInstance eventInstance = audioEventPlayer.GetInstance; eventInstance.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT); }
protected override void ReactToEvent(UnityFunction unityFunction) { AudioPlayer.StopEmitter(emitterType); }
protected override void ReactToEvent(UnityFunction unityFunction) { eventInstance.start(); }
protected override void ReactToEvent(UnityFunction unityFunction) { unityAction.Invoke(); }
protected abstract void ReactToEvent(UnityFunction unityFunction);