コード例 #1
0
        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);
            }
        }
コード例 #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);
            }
        }
コード例 #3
0
        protected override void ReactToEvent(UnityFunction unityFunction)
        {
            EventInstance eventInstance = audioEventPlayer.GetInstance;

            eventInstance.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
        }
コード例 #4
0
 protected override void ReactToEvent(UnityFunction unityFunction)
 {
     AudioPlayer.StopEmitter(emitterType);
 }
コード例 #5
0
 protected override void ReactToEvent(UnityFunction unityFunction)
 {
     eventInstance.start();
 }
コード例 #6
0
 protected override void ReactToEvent(UnityFunction unityFunction)
 {
     unityAction.Invoke();
 }
コード例 #7
0
 protected abstract void ReactToEvent(UnityFunction unityFunction);