49 lines
936 B
C#
49 lines
936 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class GetGoldPanel : BasePanel
|
|
{
|
|
//关闭
|
|
public Button btnClose;
|
|
//分享
|
|
public Button btnShare;
|
|
//下一关
|
|
public Button btnNextLev;
|
|
//重新开始
|
|
public Button btnRestart;
|
|
|
|
//金币
|
|
public Text txtGold;
|
|
|
|
public override void Init()
|
|
{
|
|
btnClose.onClick.AddListener(() =>
|
|
{
|
|
UIManager.Instance.HidePanel<GetGoldPanel>();
|
|
});
|
|
//点击分享按钮做什么
|
|
btnShare.onClick.AddListener(() =>
|
|
{
|
|
|
|
});
|
|
//点击下一关按钮做什么
|
|
btnNextLev.onClick.AddListener(() =>
|
|
{
|
|
|
|
});
|
|
//点击重新开始做什么
|
|
btnRestart.onClick.AddListener(() =>
|
|
{
|
|
|
|
});
|
|
}
|
|
|
|
//更新金币奖励
|
|
public void UpdateGold(int gold)
|
|
{
|
|
txtGold.text = gold.ToString() + "金币";
|
|
}
|
|
}
|