void AddFadeInLocker(object locker) | Adds a lock. The first lock snaps to black and locks the player controller. |
void CancelCurrentFade(bool isInvokingCallback) | Stops the current fade. Its callback always runs, whatever the flag says. |
AltaCoroutine CustomFade(float alphaStart, float alphaEnd, float fadeDuration, Action fadeCallback = null, float startDelay = 0) | Cancels any fade, then fades from one alpha to another over a time after an optional delay. |
AltaCoroutine FadeBackIn(float fadeInDuration, Action fadeCallback = null, float startDelay = 0) | Fades from black to clear. |
void FadeInIfNotLocked(float fadeDuration) | Fades back in unless a locker is holding it black. |
AltaCoroutine FadeToBlack(float fadeOutDuration, Action fadeCallback = null, float startDelay = 0) | Fades from clear to black. |
void InstantSet(float alpha) | Cancels any fade and sets the alpha at once. |
void RemoveFadeInLocker(object locker, float fadeDuration) | Removes a lock and fades back in if none are left. |
AltaCoroutine SetFadedAndFadeBackIn(float fadeInDuration, Action fadeCallback = null, float startDelay = 0) | Snaps to black, then fades back in. |
protected void Inject(IPlayerControllerMultiLockModel playerControllerMultiLockModel) | VContainer injection of the player controller lock model. |
protected bool IsFadeLocked() | True while any locker is held. |
protected abstract IEnumerator LerpFadeScreen(float duration, float alphaStart, float alphaEnd) | Subclass: animates the alpha over a duration. |
protected abstract void Set(float alpha) | Subclass: sets the alpha straight away. |