Exemplo n.º 1
0
 public void FadeOut(float fadeOutLength, float startToFadeTime)
 {
     if (fadeOutLength < 0.0)
     {
         fadeOutLength = SubItem == null ? 0.0f : SubItem.FadeOut;
     }
     if (fadeOutLength > 0.0 || startToFadeTime > 0.0)
     {
         primaryFader.FadeOut(fadeOutLength, startToFadeTime);
     }
     else
     {
         if (fadeOutLength != 0.0)
         {
             return;
         }
         if (ShouldStopIfPrimaryFadedOut)
         {
             _Stop();
         }
         else
         {
             primaryFader.FadeOut(0.0f, startToFadeTime);
         }
     }
 }
Exemplo n.º 2
0
 public void FadeOut(float fadeOutLength, float startToFadeTime = 0.0f)
 {
     UpdateFadeTime();
     AudioFader.FadeOut(fadeOutLength, startToFadeTime);
 }