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(); } }
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); } }
protected void OnFadeOutFinished() { FadeOutFinished?.Invoke(this, EventArgs.Empty); }