主界面相关
parent
9050093406
commit
910da9b3ea
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Framework;
|
||||
|
|
@ -10,9 +10,20 @@ using UnityEngine.UI;
|
|||
|
||||
public class UI_CurrencyItem : MonoBehaviour
|
||||
{
|
||||
[DelayedProperty] [OnValueChanged("OnCurrencyIDChanged")]
|
||||
public int currencyID = -1;
|
||||
[DelayedProperty]
|
||||
[SerializeField]
|
||||
[OnValueChanged("OnCurrencyIDChanged")]
|
||||
private int _currencyID;
|
||||
|
||||
public int currencyID
|
||||
{
|
||||
get { return _currencyID; }
|
||||
set
|
||||
{
|
||||
_currencyID = value;
|
||||
Refresh();
|
||||
}
|
||||
}
|
||||
private TMP_Text _num;
|
||||
|
||||
private bool Vaild => currencyID != -1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue