Example #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);
        }
Example #2
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);
        }