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);
            }
        }
Esempio n. 2
0
        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);
        }
Esempio n. 4
0
 protected override void ReactToEvent(UnityFunction unityFunction)
 {
     AudioPlayer.StopEmitter(emitterType);
 }
Esempio n. 5
0
 protected override void ReactToEvent(UnityFunction unityFunction)
 {
     eventInstance.start();
 }
 protected override void ReactToEvent(UnityFunction unityFunction)
 {
     unityAction.Invoke();
 }
Esempio n. 7
0
 protected abstract void ReactToEvent(UnityFunction unityFunction);