12345678910111213141516171819202122232425262728293031 |
- using System;
- using UnityEngine;
- public class UIMoneyController : MonoBehaviour
- {
- public int CoinNum
- {
- get
- {
- return this._coinNum;
- }
- set
- {
- if (this._coinNum != value)
- {
- this._coinNum = value;
- this.moneyLabel.text = value.ToString();
- }
- }
- }
- private void Update()
- {
- this.CoinNum = R.Equipment.CoinNum;
- }
- private int _coinNum;
- [SerializeField]
- private UILabel moneyLabel;
- }
|