using UnityEngine; using UnityEngine.UI; using System.Collections; public class SkillTalentPageItem : UISubMenuItem { public GameObject _LockImg; public override void InitMenu(object obj) { _MenuObj = obj; string str = obj as string; if (str != SkillRootLogic.TALENT_PAGE_LOCK_STR) { _MenuText.gameObject.SetActive(true); _LockImg.SetActive(false); _MenuText.text = str; if(_HLMenuText != null) { _HLMenuText.text = str; } } else { _MenuText.gameObject.SetActive(false); _LockImg.SetActive(true); } if (_SelectGO != null) _SelectGO.SetActive(false); } }