40 lines
1004 B
C#
40 lines
1004 B
C#
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<GoldSuccPanel>(false);
|
|
//提现后会更新提现面板
|
|
UIManager.Instance.GetPanel<GoldRealPanel>().UpdatePanel(GameDataMgr.Instance.player);
|
|
});
|
|
btnSubmit.onClick.AddListener(() =>
|
|
{
|
|
UIManager.Instance.HidePanel<GoldSuccPanel>(false);
|
|
//提现后会更新提现面板
|
|
UIManager.Instance.GetPanel<GoldRealPanel>().UpdatePanel(GameDataMgr.Instance.player);
|
|
});
|
|
}
|
|
|
|
//给外界更新面板上money的方法
|
|
public void UpdatePanel(int money)
|
|
{
|
|
txtMoney.text=money+"元";
|
|
}
|
|
}
|