Ejemplo n.º 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.Find("button/fanhui").GetComponent <tk2dUIItem>().OnClick -= Back_Click;

        go_Help.transform.Find("button/baike").GetComponent <tk2dUIItem>().OnClick -= Baike_Click;

        go_Help.transform.Find("button/jiaocheng").GetComponent <tk2dUIItem>().OnClick -= Jiaocheng_Click;
        Moudle_main.Singlton.go_Black.SetActive(false);
    }
Ejemplo n.º 2
0
    void Tijiao()
    {
        switch (Moudle_main.iState)
        {
        case 0:
            if (Moudle_main.EvtBackStart != null)
            {
                Moudle_main.EvtBackStart();
            }
            break;
        }
        reqChangeName.Name = NameChange.getName();
        // Debug.Log(NameChange.getName());
        if (reqChangeName.Name != null && reqChangeName.Name != "")
        {
            // Debug.Log("名字不为空");

            Moudle_scene.mP.Send(Moudle_scene.session, reqChangeName);
        }
        if (reqChangeName.Name == null || reqChangeName.Name == "")
        {
            //  Debug.Log("名字为空");
        }

        //go_Rank.transform.FindChild("改名字/确定").GetComponent<tk2dUIItem>().OnClick -= Tijiao;
    }
Ejemplo n.º 3
0
    void Start()
    {
        go_start = Instantiate(Prefab_startUI) as GameObject;
        go_start.transform.Find("buttoms/startbutton").GetComponent <tk2dUIItem>().OnClick += start_Click;
        go_start.transform.Find("buttoms/function").GetComponent <tk2dUIItem>().OnClick    += Help_Click;
        go_start.transform.Find("buttoms/chengjiu").GetComponent <tk2dUIItem>().OnClick    += Achievement_Click;
        go_start.transform.Find("buttoms/paihangbang").GetComponent <tk2dUIItem>().OnClick += Rank_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.Find("yes").GetComponent <tk2dUIItem>().OnClick += YES_Click;
        go_Quit.transform.Find("no").GetComponent <tk2dUIItem>().OnClick  += NO_Click;
        // go_start.transform.localScale = new Vector3(0.1f, 1, 1);
    }
Ejemplo n.º 4
0
    void Back_Click()
    {
        switch (Moudle_main.iState)
        {
        case 0:
        {
            if (Moudle_main.EvtBackStart != null)
            {
                Moudle_main.EvtBackStart();
            }
        }
        break;

        case 1:
        {
        }
        break;
        }
        Moudle_main.Singlton.go_Black.SetActive(false);
        go_Achievement.SetActive(false);
    }
Ejemplo n.º 5
0
    void Rank_BackClick()
    {
        switch (Moudle_main.iState)
        {
        case 0:
        {
            if (Moudle_main.EvtBackStart != null)
            {
                Moudle_main.EvtBackStart();
            }
        }
        break;

        case 1:
        {
        }
        break;
        }
        go_Rank.SetActive(false);
        Moudle_main.Singlton.go_Black.SetActive(false);
    }