public Promise <CUnit> Hide(float duration, TweenExecutor executor) { var result = DoHide(duration, executor); Tweening.Disposable = result; return(result); }
protected override Promise <CUnit> DoHide(float duration, TweenExecutor executor) { transform.localScale = Vector3.one; return(executor.Execute( new FloatTween(duration, 1, 0, hideEasing, s => transform.localScale = new Vector3(1, s, 1)) ).AddTo(this)); }
protected override Promise <CUnit> DoHide(float duration, TweenExecutor executor) { SetSize(shownSize); return(executor.Execute( new FloatTween(duration, shownSize, 0, EasingEnum.QuadEaseOut, s => SetSize(s), _ => layoutElement.gameObject.SetActive(false)) ).AddTo(this)); }
protected override Promise <CUnit> DoHide(float duration, TweenExecutor executor) { return(executor.Execute( new FloatTween( duration, canvasGroup.alpha, 0, hideEasing, a => canvasGroup.alpha = a, _ => canvasGroup.alpha = 0 ) )); }
protected abstract Promise <CUnit> DoHide(float duration, TweenExecutor executor);
public Promise <CUnit> Hide(TweenExecutor executor) { return(Hide(GetDefaultHideEasingDuration(), executor)); }
public Promise <CUnit> Show(TweenExecutor executor) { return(Show(GetDefaultShowEasingDuration(), executor)); }