Main/System/Main/HomeWin.cs
@@ -29,6 +29,10 @@ [SerializeField] Button autoBtn; //其他功能入口 [SerializeField] Button monthCardBtn; /// <summary> /// 初始化组件 /// </summary> @@ -68,6 +72,12 @@ dropindexs.Clear(); } }); monthCardBtn.AddListener(() => { InvestModel.Instance.BuyInvest(InvestModel.monthCardType); }); } @@ -77,6 +87,7 @@ { UpdatePlayerInfo(); UpdateTask(); RefreshRecharge(); } protected override void OnPreOpen() @@ -119,6 +130,11 @@ } void RefreshRecharge() { monthCardBtn.SetActive(!InvestModel.Instance.IsInvested(InvestModel.monthCardType)); } /// <summary> /// 更新玩家信息 /// </summary>