26 lines
590 B
C#
26 lines
590 B
C#
using GCGame.Table;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class FashionAttrItemBase : MonoBehaviour {
|
|
|
|
public Text _AttrName;
|
|
public Text _AttrVal;
|
|
|
|
public void InitAttrItem(int propId, int val)
|
|
{
|
|
if(propId == -1)
|
|
{
|
|
gameObject.SetActive(false);
|
|
return;
|
|
}
|
|
|
|
gameObject.SetActive(true);
|
|
propId += 10000;
|
|
_AttrName.text = StrDictionary.GetClientDictionaryString("#{" + propId + "}");
|
|
_AttrVal.text = val.ToString();
|
|
}
|
|
}
|