Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        if (gameObject.name == "bt_difficulty1")
        {
            m_iDifficulty = 1;
        }
        else if (gameObject.name == "bt_difficulty2")
        {
            m_iDifficulty = 2;
        }
        else if (gameObject.name == "bt_difficulty3")
        {
            m_iDifficulty = 3;
        }

        m_CampaignMgr        = m_CampaignWnd.transform.FindChild("CullPanel/CampaignPanel/sp_campaign/sp_bottom/sp_spirit/bt_addsprite").GetComponent <CampaignMgr>();
        m_CullPanel          = m_CampaignWnd.transform.FindChild("CullPanel").GetComponent <UIPanel>();
        m_CullPanel.clipping = UIDrawCall.Clipping.None;
    }