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