Exemple #1
0
 public override void Update()
 {
     if (movie != null)
     {
         movie.Update();
     }
     if (!Initialized)
     {
         return;
     }
     if (waitingseek)
     {
         waitingcount++;
     }
     if (laststate == MovieFadeState.FadeOut && FadeState == MovieFadeState.None)
     {
         if (FadeOutFinished != null)
         {
             FadeOutFinished.Invoke(this, EventArgs.Empty);
         }
     }
     if (movie == null)
     {
         return;
     }
     laststate = FadeState;
     if (CheckLoopAvailable)
     {
         CheckLoop();
     }
 }
Exemple #2
0
    public void FadeOut()
    {
        FadeOutStarted?.Invoke();

        graphics[0].DOFade(0, fadeOutDuration)
        .OnComplete(() =>
        {
            Hide();
            FadeOutFinished?.Invoke();
        });

        for (int i = 1; i < graphics.Length; i++)
        {
            Graphic g = graphics[i];
            g.DOFade(0, fadeOutDuration);
        }
    }
Exemple #3
0
 protected void OnFadeOutFinished()
 {
     FadeOutFinished?.Invoke(this, EventArgs.Empty);
 }