主界面相关

main
LuoFang 2023-11-27 12:25:37 +08:00
parent 9050093406
commit 910da9b3ea
1 changed files with 14 additions and 3 deletions

View File

@ -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;