public override void Play <T>(T from, T to, TransitionComplete onTransitionComplete) { if (from != null) { this._from = from as SimpleScreen; this._from.CanvasGroup.alpha = 1f; } if (to != null) { this._to = to as SimpleScreen; this._to.CanvasGroup.alpha = 0f; } this._onTransitionComplete = onTransitionComplete; Play(); }
private void Reset() { _from = _to = null; _onTransitionComplete = null; }