Ejemplo n.º 1
0
 private void deteCurBtn()
 {
     if (curBtn != null)
     {
         RectTransform rtf = curBtn.transform as RectTransform;
         if (rtf.anchoredPosition.y < curBtnOutY)
         {
             if (curBtn == button2)
             {
                 panelCenter.showGamePanel();
             }
             else if (curBtn == button3)
             {
                 Application.Quit();
             }
             else if (curBtn == button1)
             {
                 panelCenter.showGame2Panel();
             }
             Destroy(gameObject);
         }
     }
 }
 public override void enter()
 {
     pc = PanelCenter.Instance;
     pc.showGame2Panel();
 }