void ShowTop() { MenuTPs.duration = tpsDuration[0]; MenuTAs.duration = tasDuration[0]; MenuTPs.PlayForward(); MenuTAs.PlayForward(); MenuTPs.onFinished.Clear(); EventDelegate.Add(MenuTPs.onFinished, OnShowComplete); }
public override void Show() { Debug.Log("Show" + gameObject.name); if (!isShow) { OnShowStart(); isShow = true; MenuTPs.duration = tpsDuration[0]; MenuTAs.duration = tasDuration[0]; MenuTPs.PlayForward(); MenuTAs.PlayForward(); MenuTPs.onFinished.Clear(); EventDelegate.Add(MenuTPs.onFinished, OnShowComplete); if (!gameObject.activeSelf) { NGUITools.SetActive(gameObject, true); } EventDelegate.Execute(onShow); } }
public override void Show() { Debug.Log("Show" + gameObject.name); if (!isShow) { current = GameController.Instance.currentMode; Debug.Log("Show" + GameController.Instance.currentMode.ToString()); GameController.Instance.ChangeStateTo(GameMode.Menu); OnShowStart(); isShow = true; MenuTPs.duration = tpsDuration[0]; MenuTAs.duration = tasDuration[0]; MenuTPs.PlayForward(); MenuTAs.PlayForward(); MenuTPs.onFinished.Clear(); EventDelegate.Add(MenuTPs.onFinished, OnShowComplete); if (!gameObject.activeSelf) { NGUITools.SetActive(gameObject, true); } EventDelegate.Execute(onShow); } }