Exemplo n.º 1
0
    public void ClearXX()
    {
        if (m_Star == null || m_Star.gameObject == null)
        {
            return;
        }

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

        sm.ClearS();
    }
Exemplo n.º 2
0
    //删除星星
    public void ClearStar()
    {
        if (m_Star == null || m_Star.gameObject == null)
        {
            return;
        }
        m_Star.gameObject.SetActive(false);
        StarMove sm = m_Star.gameObject.GetComponent <StarMove>();

        sm.ClearS();
    }
Exemplo n.º 3
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();
    }
Exemplo n.º 4
0
    void OnClickBack()
    {
        StarMove sm3 = m_Star.gameObject.GetComponent <StarMove>();

        sm3.ClearS();
        m_data = null;
        InitUI();
        SetShow(false);
        RED.SetActive(true, TrainingRoomUI.mInstance.m_mainTraining);

        if (TrainingRoomUI.mInstance.m_callBack != null)
        {
            TrainingRoomUI.mInstance.OnClickExit();
        }
    }
Exemplo n.º 5
0
    //清除星星
    public void ClearXX()
    {
        if (star_1 == null || star_1.gameObject == null)
        {
            return;
        }

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

        sm.ClearS();

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


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

        sm1.ClearS();
    }