Пример #1
0
    public void InitBannerCtrl()
    {
        CUIFormScript mallForm = Singleton <CMallSystem> .GetInstance().m_MallForm;

        if ((mallForm != null) && Singleton <CMallSystem> .GetInstance().m_IsMallFormOpen)
        {
            GameObject obj2 = Utility.FindChild(mallForm.gameObject, "pnlBodyBg/pnlBoutique/Left/Top/StepList");
            if (obj2 == null)
            {
                DebugHelper.Assert(false, "banner img object is null");
            }
            else
            {
                BannerImageCtrl component = obj2.GetComponent <BannerImageCtrl>();
                if (component == null)
                {
                    DebugHelper.Assert(false, "banner img ctrl is null");
                }
                else
                {
                    component.InitSys();
                }
            }
        }
    }
    public void InitBannerCtrl()
    {
        CUIFormScript mallForm = Singleton <CMallSystem> .GetInstance().m_MallForm;

        if (mallForm == null || !Singleton <CMallSystem> .GetInstance().m_IsMallFormOpen)
        {
            return;
        }
        GameObject gameObject = Utility.FindChild(mallForm.gameObject, "pnlBodyBg/pnlBoutique/Left/Top/StepList");

        if (gameObject == null)
        {
            DebugHelper.Assert(false, "banner img object is null");
            return;
        }
        BannerImageCtrl component = gameObject.GetComponent <BannerImageCtrl>();

        if (component == null)
        {
            DebugHelper.Assert(false, "banner img ctrl is null");
            return;
        }
        component.InitSys();
    }