void UpdateEnableState() { Tab_LivingSkill tabLivingSkill = TableManager.GetLivingSkillByID(m_FormulaID, 0); if (tabLivingSkill == null) { return; } if (Singleton<ObjManager>.Instance.MainPlayer == null) { return; } if (Singleton<ObjManager>.Instance.MainPlayer.BaseAttr.Level < tabLivingSkill.OpenLevel) { m_ItemSlot.ItemSlotDisable(); } else { m_ItemSlot.ItemSlotEnable(); } }