Example #1
0
    public void OnClickTypes(GameObject obj)
    {
        int index = int.Parse(obj.name);

        switch (index)
        {
        case 1:
            m_hechengUI.SetShow(true);
//                StarMove sm  =m_hechengUI.star_1.gameObject.GetComponent<StarMove>();
//                StarMove sm2 =m_hechengUI.star_2.gameObject.GetComponent<StarMove>();
//                sm.setBtnXing();
//                sm2.setBtnXing();
            HCStarMove();
            break;

        case 2:
            m_qianLiUI.SetShow(true);
            StarMove sm3 = m_qianLiUI.m_Star.gameObject.GetComponent <StarMove>();
            sm3.setBtnXing();
            break;

        case 3:
            m_attrSwapUI.SetShow(true);
            break;

        case 4:
            m_monEvolveUI.SetShow(true);
            break;
        }
        RED.SetActive(false, m_mainTraining);
    }
Example #2
0
    //合成界面 初始化星星
    private void HCStarMove()
    {
        StarMove sm  = m_hechengUI.star_1.gameObject.GetComponent <StarMove>();
        StarMove sm2 = m_hechengUI.star_2.gameObject.GetComponent <StarMove>();

        sm.setBtnXing();
        sm2.setBtnXing();
    }
    //初始化星星
    public void initXX()
    {
        if (m_Star == null || m_Star.gameObject == null)
        {
            return;
        }

        StarMove sm = m_Star.gameObject.GetComponent <StarMove>();

        sm.setBtnXing();
    }
Example #4
0
    //初始化星星
    public void initStar()
    {
        if (m_Star == null || m_Star.gameObject == null)
        {
            return;
        }
        m_Star.gameObject.SetActive(true);
        StarMove sm = m_Star.gameObject.GetComponent <StarMove>();

        sm.ClearS();
        sm.setBtnXing();
    }
Example #5
0
    void InitUI(ENUM_TRAIN_TYPE type, Monster mon)
    {
        RED.SetActive(false, m_despUI.gameObject);
        if (type == ENUM_TRAIN_TYPE.None)
        {
            m_hechengUI.SetShow(false);
            m_attrSwapUI.SetShow(false);
            m_qianLiUI.SetShow(false);
            m_monEvolveUI.SetShow(false);
            RED.SetActive(true, m_mainTraining);
        }
        else if (type == ENUM_TRAIN_TYPE.HeCheng)
        {
            m_hechengUI.SetShow(true);
            m_attrSwapUI.SetShow(false);
            m_qianLiUI.SetShow(false);
            m_monEvolveUI.SetShow(false);
            RED.SetActive(false, m_mainTraining);
            _mInstanece.HCStarMove();
        }
        else if (type == ENUM_TRAIN_TYPE.AttrSwap)
        {
            m_hechengUI.SetShow(false);
            m_attrSwapUI.SetShow(true);
            m_qianLiUI.SetShow(false);
            m_monEvolveUI.SetShow(false);
            RED.SetActive(false, m_mainTraining);
        }
        else if (type == ENUM_TRAIN_TYPE.QianLiXunLian)
        {
            m_hechengUI.SetShow(false);
            m_attrSwapUI.SetShow(false);
            m_qianLiUI.SetShow(true);
            m_monEvolveUI.SetShow(false);
            RED.SetActive(false, m_mainTraining);

            StarMove sm3 = m_qianLiUI.m_Star.gameObject.GetComponent <StarMove>();
            sm3.setBtnXing();
        }
        else if (type == ENUM_TRAIN_TYPE.MonsterEvolve)
        {
            m_hechengUI.SetShow(false);
            m_attrSwapUI.SetShow(false);
            m_qianLiUI.SetShow(false);
            m_monEvolveUI.SetShow(true);

            RED.SetActive(false, m_mainTraining);
        }
    }
Example #6
0
    //初始化星星
    public void initXX()
    {
        if (star_1 == null || star_1.gameObject == null)
        {
            return;
        }

        StarMove sm = star_1.gameObject.GetComponent <StarMove>();

        sm.setBtnXing();

        if (star_2 == null || star_2.gameObject == null)
        {
            return;
        }


        StarMove sm1 = star_2.gameObject.GetComponent <StarMove>();

        sm1.setBtnXing();
    }