예제 #1
0
    void Awake()
    {
        m_Transform = transform;
        FillFullNameData(m_Transform);

        m_instance = m_Transform.GetComponentsInChildren <NewInstanceUIChooseLevelViewManager>(true)[0];

        m_goLevelGridList = m_Transform.Find(m_widgetToFullName["NewInstanceUIChooseLevelGridList"]).gameObject;
        m_goLevelPathList = m_Transform.Find(m_widgetToFullName["NewInstanceUIChooseLevelPathList"]).gameObject;

        m_lblTitleName = m_Transform.Find(m_widgetToFullName["NewInstanceUIChooseLevelTitleText"]).GetComponentsInChildren <UILabel>(true)[0];

        m_lblSweepNum = m_Transform.Find(m_widgetToFullName["InstanceLeftChallengeNum"]).GetComponentsInChildren <UILabel>(true)[0];
        m_lblResetNum = m_Transform.Find(m_widgetToFullName["InstanceLeftResetNum"]).GetComponentsInChildren <UILabel>(true)[0];

        m_lblResetNum    = m_Transform.Find(m_widgetToFullName["InstanceLeftResetNum"]).GetComponentsInChildren <UILabel>(true)[0];
        m_goInstanceMap  = m_Transform.Find(m_widgetToFullName["NewInstanceUIChooseLevelMapBG"]).gameObject;
        m_texInstanceMap = m_goInstanceMap.GetComponentsInChildren <UITexture>(true)[0];

        for (int i = 0; i < 10; ++i)
        {
            m_listChooseLevelGridPos.Add(m_goLevelGridList.transform.Find(string.Concat("NewInstanceUIChooseLevelGridPos", i)).gameObject);

            m_listPath.Add(m_goLevelPathList.transform.Find(string.Concat("NewInstanceUIChooseLevelPath", i)).gameObject);
        }

        ResetLevelGridPos(1);

        FillNewInstanceUIChooseLevelGridData(10);
    }
    void Awake()
    {
        m_Transform = transform;
        FillFullNameData(m_Transform);

        m_instance = m_Transform.GetComponentsInChildren<NewInstanceUIChooseLevelViewManager>(true)[0];

        m_goLevelGridList = m_Transform.FindChild(m_widgetToFullName["NewInstanceUIChooseLevelGridList"]).gameObject;
        m_goLevelPathList = m_Transform.FindChild(m_widgetToFullName["NewInstanceUIChooseLevelPathList"]).gameObject;

        m_lblTitleName = m_Transform.FindChild(m_widgetToFullName["NewInstanceUIChooseLevelTitleText"]).GetComponentsInChildren<UILabel>(true)[0];

        m_lblSweepNum = m_Transform.FindChild(m_widgetToFullName["InstanceLeftChallengeNum"]).GetComponentsInChildren<UILabel>(true)[0];
        m_lblResetNum = m_Transform.FindChild(m_widgetToFullName["InstanceLeftResetNum"]).GetComponentsInChildren<UILabel>(true)[0];

        m_lblResetNum = m_Transform.FindChild(m_widgetToFullName["InstanceLeftResetNum"]).GetComponentsInChildren<UILabel>(true)[0];
        m_goInstanceMap = m_Transform.FindChild(m_widgetToFullName["NewInstanceUIChooseLevelMapBG"]).gameObject;
        m_texInstanceMap = m_goInstanceMap.GetComponentsInChildren<UITexture>(true)[0];

        for (int i = 0; i < 10; ++i)
        {
            m_listChooseLevelGridPos.Add(m_goLevelGridList.transform.FindChild(string.Concat("NewInstanceUIChooseLevelGridPos", i)).gameObject);

            m_listPath.Add(m_goLevelPathList.transform.FindChild(string.Concat("NewInstanceUIChooseLevelPath",i)).gameObject);
        }

        ResetLevelGridPos(1);

        FillNewInstanceUIChooseLevelGridData(10);
    }