private void OnHeroCastAbility(int id, string skillName) { if (m_PlayerActor.id == id) { var castType = m_PlayerUnit.GetCastType(skillName); MobaSkillItem item = GetSkillItem(castType); if (item != null) { item.SetCDState(); } } }