Exemplo n.º 1
0
 public static void ParameterTransitionOverrideCallback(object obj)
 {
     AudioMixerEffectGUI.ParameterTransitionOverrideContext parameterTransitionOverrideContext = (AudioMixerEffectGUI.ParameterTransitionOverrideContext)obj;
     Undo.RecordObject(parameterTransitionOverrideContext.controller, "Change Parameter Transition Type");
     if (parameterTransitionOverrideContext.type == ParameterTransitionType.Lerp)
     {
         parameterTransitionOverrideContext.controller.TargetSnapshot.ClearTransitionTypeOverride(parameterTransitionOverrideContext.parameter);
     }
     else
     {
         parameterTransitionOverrideContext.controller.TargetSnapshot.SetTransitionTypeOverride(parameterTransitionOverrideContext.parameter, parameterTransitionOverrideContext.type);
     }
 }