void SetItemDesc() { m_button.Lable.Text.text = RefData.Instance.RefTexts(m_itemObj.Item.RefItem.name); m_button.Icon.Image = m_itemObj.ItemIcon; m_name.Text.text = RefData.Instance.RefTexts(m_itemObj.Item.RefItem.desc); if (m_itemObj.Item.RefItem.id == Const.GemRefItemId) { gemReward = Random.Range(500, 1500); m_button.Lable.Text.text = "" + gemReward.Value; } }
public void init(Creature owner, RefCreatureBaseProperty baseProperty, int level, int evolution) { m_owner = owner; m_baseProperty = baseProperty; Level = level; m_evolution = evolution; m_exp = m_baseProperty.exp; }