Example #1
0
 void ShowTop()
 {
     MenuTPs.duration = tpsDuration[0];
     MenuTAs.duration = tasDuration[0];
     MenuTPs.PlayForward();
     MenuTAs.PlayForward();
     MenuTPs.onFinished.Clear();
     EventDelegate.Add(MenuTPs.onFinished, OnShowComplete);
 }
Example #2
0
 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);
     }
 }
Example #3
0
 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);
     }
 }