예제 #1
0
        void Back_Click()
        {
            switch (Moudle_main.iState)
            {
            case 0:
            {
                go_Help.SetActive(false);
                if (Moudle_main.EvtBackStart != null)
                {
                    Moudle_main.EvtBackStart();
                }
            }
            break;

            case 1:
            {
                go_Help.SetActive(false);
            }
            break;
            }

            go_Help.transform.FindChild("button/fanhui").GetComponent <tk2dUIItem>().OnClick -= Back_Click;

            Moudle_main.Singlton.go_Black.SetActive(false);
        }
예제 #2
0
 void OK_Click()
 {
     reset();
     if (select != 0)
     {
         go_Recharge.SetActive(false);
         select = 0;
         if (Moudle_main.EvtShop != null)
         {
             Moudle_main.EvtShop();
         }
     }
     //chongzhi_select.get
 }
예제 #3
0
 void start_Click()
 {
     switch (Moudle_main.iState)
     {
     case 0:
     {
         go_start.SetActive(false);
         Moudle_main.iState = 1;
     }
     break;
     }
     if (Moudle_main.EvtSceneSelect != null)
     {
         Moudle_main.EvtSceneSelect();
     }
 }
예제 #4
0
 void Help_Click()
 {
     Moudle_main.Singlton.go_Black.SetActive(true);
     switch (Moudle_main.iState)
     {
     case 0:
     {
         go_start.SetActive(false);
     }
     break;
     }
     if (Moudle_main.EvtHelp != null)
     {
         Moudle_main.EvtHelp();
     }
 }
예제 #5
0
        void Start()
        {
            go_start = Instantiate(Prefab_startUI) as GameObject;
            go_start.transform.FindChild("buttoms/function").GetComponent <tk2dUIItem>().OnClick += Help_Click;

            Moudle_main.EvtBackStart += Handle_GameBackStart;
            if (Moudle_main.EvtBackStart != null)
            {
                Moudle_main.EvtBackStart();
            }

            go_Quit = Instantiate(Prefab_Quit) as GameObject;
            go_Quit.SetActive(false);

            go_Quit.transform.FindChild("yes").GetComponent <tk2dUIItem>().OnClick += YES_Click;
            go_Quit.transform.FindChild("no").GetComponent <tk2dUIItem>().OnClick  += NO_Click;
            // go_start.transform.localScale = new Vector3(0.1f, 1, 1);
        }