using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GoldSuccPanel : BasePanel { //关闭 public Button btnClose; //继续 public Button btnSubmit; //分享 public Button btnShare; //提现成功的money public Text txtMoney; public override void Init() { btnClose.onClick.AddListener(() => { UIManager.Instance.HidePanel(false); //提现后会更新提现面板 UIManager.Instance.GetPanel().UpdatePanel(GameDataMgr.Instance.player); }); btnSubmit.onClick.AddListener(() => { UIManager.Instance.HidePanel(false); //提现后会更新提现面板 UIManager.Instance.GetPanel().UpdatePanel(GameDataMgr.Instance.player); }); } //给外界更新面板上money的方法 public void UpdatePanel(int money) { txtMoney.text=money+"元"; } }