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
|
|||
|
{
|
|||
|
//<2F>ر<EFBFBD>
|
|||
|
public Button btnClose;
|
|||
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
public Button btnShare;
|
|||
|
//<2F><>һ<EFBFBD><D2BB>
|
|||
|
public Button btnNextLev;
|
|||
|
//<2F><><EFBFBD>¿<EFBFBD>ʼ
|
|||
|
public Button btnRestart;
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
public Text txtGold;
|
|||
|
|
|||
|
public override void Init()
|
|||
|
{
|
|||
|
btnClose.onClick.AddListener(() =>
|
|||
|
{
|
|||
|
UIManager.Instance.HidePanel<GetGoldPanel>();
|
|||
|
});
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ť<EFBFBD><C5A5>ʲô
|
|||
|
btnShare.onClick.AddListener(() =>
|
|||
|
{
|
|||
|
|
|||
|
});
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>ذ<EFBFBD>ť<EFBFBD><C5A5>ʲô
|
|||
|
btnNextLev.onClick.AddListener(() =>
|
|||
|
{
|
|||
|
|
|||
|
});
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¿<EFBFBD>ʼ<EFBFBD><CABC>ʲô
|
|||
|
btnRestart.onClick.AddListener(() =>
|
|||
|
{
|
|||
|
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
//<2F><><EFBFBD>½<EFBFBD><C2BD>ҽ<EFBFBD><D2BD><EFBFBD>
|
|||
|
public void UpdateGold(int gold)
|
|||
|
{
|
|||
|
txtGold.text = gold.ToString() + "<22><><EFBFBD><EFBFBD>";
|
|||
|
}
|
|||
|
}
|