yyl
2025-06-12 5ca88372febc0ebab5cbdb5f922c59a646b8fb94
Main/System/Main/MainWin.cs
@@ -8,10 +8,10 @@
/// </summary>
public class MainWin : UIBase
{
    private GameObject windowBackground;
    public GameObject windowBackground;
    // 底部按钮组
    private Button[] bottomTabButtons;
    public Button[] bottomTabButtons;
    private GameObject[] bottomTabEffects;
    
@@ -27,18 +27,6 @@
    protected override void InitComponent()
    {
        base.InitComponent();
        windowBackground = _rectTransform.Find("RawImgBackground").gameObject;
        bottomTabButtons = new Button[5];
        for (int i = 1; i <= 5; i++)
        {
            string buttonName = "Buttons/Button" + i;
            bottomTabButtons[i-1] = _rectTransform.Find(buttonName).GetComponent<Button>();
            #if UNITY_EDITOR
            //测试代码
            #endif
        }
        // 初始化UI组件事件
        InitButtonEvents();