Пример #1
0
    public System.Collections.IEnumerator InitGameObj(object objtype)
    {
        InfmationWind WindType = (InfmationWind )objtype;

        m_bInit = true;
        if (WindObj != null)
        {
            WindObj.SetActive(true);
            for (byte i = 0; i < 4; ++i)
            {
                if (i == (byte)WindType)
                {
                    m_TopBtns[i].m_IsChecked = true;
                }
                else
                {
                    m_TopBtns[i].m_IsChecked = false;
                }
            }
        }
        else
        {
            Init_GameObj();
            WindObj.SetActive(false);
            yield return(new WaitForEndOfFrame());

            m_SmailBg[0] = BaseTranF.GetChild(1).GetChild(0).gameObject;
            for (byte i = 0; i < 2; ++i)
            {
                m_SmailBg[i + 1] = m_SmailBg[0].transform.GetChild(i).gameObject;
            }
            InitTopBtns(WindType); yield return(new WaitForEndOfFrame());

            InitAchievement(); yield return(new WaitForEndOfFrame());

            InitUserInf(); yield return(new WaitForEndOfFrame());

            InitTask(); yield return(new WaitForEndOfFrame());

            InitRank(); yield return(new WaitForEndOfFrame());

            InitChangeHead(); yield return(new WaitForEndOfFrame());

            InitChangeUserInf(); yield return(new WaitForEndOfFrame());
        }
        ExchangeTopBtnsBg();
        m_bInit = false;
        yield break;
    }
Пример #2
0
 void InitTopBtns(InfmationWind WindType)
 {
     for (byte i = 0; i < 4; ++i)
     {
         m_TopBtns[i].m_BtnObj = BaseTranF.GetChild(0).GetChild(i).gameObject;
         m_TopBtnsCheckbg[i]   = BaseTranF.GetChild(0).GetChild(i + 4).gameObject;
         //m_TopBtns[i].m_Btn = m_TopBtns[i].m_BtnObj.GetComponent<UIButton>();
         if (i == (byte)WindType)
         {
             m_TopBtns[i].m_IsChecked = true;
         }
         else
         {
             m_TopBtns[i].m_IsChecked = false;
         }
         m_TopBtns[i].m_Tag = i;
         GetBtnLister(m_TopBtns[i].m_BtnObj).onClick = OnClickTopBtns;
     }
 }
Пример #3
0
    //显示界面时请求最新数据
    void UpdateInformationUIDate(InfmationWind type)
    {
        switch (type)
        {
        case InfmationWind.Wind_Rank:
        {
            UpdateRankContent();
            UpdateMyRankContent();
        }
        break;

        case InfmationWind.Wind_Task:
            UpdateTaskContent();
            break;

        case InfmationWind.Wind_Achievement:
            UpdateAchievementDate();
            break;

        case InfmationWind.Wind_UserInF:
            UpDateUserInfContent();
            break;
        }
    }
Пример #4
0
 public void ChangeInfmationWindType(InfmationWind InfmationWindType)
 {
     m_InfmationWindType = InfmationWindType;
 }