30 lines
852 B
C#
30 lines
852 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using UnityEngine.UI;
|
|
using GCGame.Table;
|
|
public class AdvanceIncAttrItem : MonoBehaviour {
|
|
|
|
public Text curNameDesc;
|
|
public Text curValue;
|
|
public Text incValue;
|
|
public GameObject incObj;
|
|
|
|
public void InitIncAttrItem(int strId, int m_CurValue, int m_IncValue)
|
|
{
|
|
curNameDesc.text = StrDictionary.GetClientDictionaryString("#{" + strId + "}");
|
|
curValue.text = m_CurValue.ToString();
|
|
//curValue.text = StrDictionary.GetClientDictionaryString("#{" + strId + "}") + "<color=#ffffff>" + m_CurValue.ToString() + "</color>";
|
|
|
|
if (m_IncValue == 0)
|
|
{
|
|
incObj.gameObject.SetActive(false);
|
|
}
|
|
else
|
|
{
|
|
incObj.gameObject.SetActive(true);
|
|
incValue.text = m_IncValue.ToString();
|
|
}
|
|
|
|
}
|
|
}
|