28 lines
629 B
C#
28 lines
629 B
C#
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 + "";
|
|
}
|
|
}
|