void OnClick() { UISkillPanel skillPanel = NGUITools.FindInParents <UISkillPanel>(this.gameObject); if (skillPanel == null) { return; } if (slotType == SlotType.SkillSetting) { if (m_IsHighlight) { skillPanel.SendMsg(SkillId, slotIndex); } skillPanel.SetActionButtonState(true); skillPanel.SetEquipFlag(false); } else { skillPanel.SetActionButtonState(m_IsUnlock); skillPanel.SetEquipFlag(m_IsUnlock); UISkillGuide.Instance.OnUnlockSlotClick(SkillId); } if (circleSp != null) { NGUITools.SetActive(circleSp.gameObject, true); } skillPanel.SetSkillInfo(SkillId); skillPanel.ShowSlotHighlight(slotType); }