Files
JJBB/Assets/Project/Script/GUI/BackPack/OrnamentAttr.cs

28 lines
629 B
C#
Raw Permalink Normal View History

2024-08-23 15:49:34 +08:00
using GCGame.Table;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class OrnamentAttr : MonoBehaviour {
public Text _PropName;
public Text _PropVal;
public void InitProp(int propId, int propVal)
{
if(propId == -1)
{
this.gameObject.SetActive(false);
return;
}else
{
this.gameObject.SetActive(true);
}
var strId = propId + 10000;
_PropName.text = StrDictionary.GetClientDictionaryString("#{" + strId + "}");
_PropVal.text = propVal + "";
}
}