void HideTop() { MenuTPs.duration = tpsDuration[1]; MenuTAs.duration = tasDuration[1]; MenuTPs.PlayReverse(); MenuTAs.PlayReverse(); MenuTPs.onFinished.Clear(); EventDelegate.Add(MenuTPs.onFinished, OnHideComplete); }
public override void Hide() { if (isShow) { OnHideStart(); isShow = false; MenuTPs.duration = tpsDuration[1]; MenuTAs.duration = tasDuration[1]; MenuTPs.PlayReverse(); MenuTAs.PlayReverse(); MenuTPs.onFinished.Clear(); EventDelegate.Add(MenuTPs.onFinished, OnHideComplete); EventDelegate.Execute(onHide); } }