Esempio n. 1
0
 /// <summary>
 /// Constructor. Stores parameter into variables.
 /// </summary>
 public FadeOut(FadeOutParameters ap)
 {
     mFadeOut   = ap.mFadeOut;
     mSampleCnt = ap.mSampleCnt;
     foreach (Parameter parameter in ap.GetParams().Values)
     {
         if (parameter.name.Equals("Fade Out"))
         {
             mFadeOut = (float)parameter.value;
         }
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Sets the parameters for Fade Out effect
        /// </summary>

        public void SetParameters(ref EffectParameters param)
        {
            FadeOutParameters fd = (FadeOutParameters)param;

            mFadeOut = fd.mFadeOut;
        }