yyl
2025-06-12 5ca88372febc0ebab5cbdb5f922c59a646b8fb94
Main/System/UIBase/OneLevelWin.cs
@@ -29,20 +29,29 @@
    {
        base.InitComponent();
        m_TitleIcon = this.GetComponent<Image>("Pivot/Container_BackGround/Img_Title");
        m_Group = this.GetComponent<FunctionButtonGroup>("Pivot/Container_Functions");
        m_Left = this.GetComponent<Button>("Pivot/Container_Buttons/Btn_Left");
        m_Right = this.GetComponent<Button>("Pivot/Container_Buttons/Btn_Right");
        m_Close = this.GetComponent<Button>("Pivot/Container_Buttons/Btn_Close");
        m_Copper = this.GetComponent<Text>("Pivot/Container_BackGround/FollowStoreBottom/SilverCountBG/CountText");
        // //  跟原版的差别
        Transform trans = transform;
        // if (_rectTransform != null)
        // {
        //     trans = _rectTransform;
        // }
        m_TitleIcon = trans.GetComponent<Image>("Pivot/Container_BackGround/Img_Title");
        m_Group = trans.GetComponent<FunctionButtonGroup>("Pivot/Container_Functions");
        m_Left = trans.GetComponent<Button>("Pivot/Container_Buttons/Btn_Left");
        m_Right = trans.GetComponent<Button>("Pivot/Container_Buttons/Btn_Right");
        m_Close = trans.GetComponent<Button>("Pivot/Container_Buttons/Btn_Close");
        m_Copper = trans.GetComponent<Text>("Pivot/Container_BackGround/FollowStoreBottom/SilverCountBG/CountText");
        if (m_Copper != null)
            m_Diamond = this.GetComponent<Text>("Pivot/Container_BackGround/FollowStoreBottom/GoldCountBG/CountText");
            m_BindDiamond = this.GetComponent<Text>("Pivot/Container_BackGround/FollowStoreBottom/GoldPaperCountBG/CountText");
            m_Diamond = trans.GetComponent<Text>("Pivot/Container_BackGround/FollowStoreBottom/GoldCountBG/CountText");
            m_BindDiamond = trans.GetComponent<Text>("Pivot/Container_BackGround/FollowStoreBottom/GoldPaperCountBG/CountText");
        m_SubWindowContainer = this.GetComponent<RectTransform>("Pivot/Container_SubWindow");
        m_SubWindowContainer = trans.GetComponent<RectTransform>("Pivot/Container_SubWindow");
        var name = this.gameObject.name;
        var name = gameObject.name;
        var infos = WindowConfig.GetWindowFunctionInfos(name);
        foreach (var info in infos)
        {