void DragBanKuai(SkillData data,RaycastHit hit) { Collider col = hit.collider; if (null != col && null != col.gameObject) { if (col.gameObject == gameObject || col.transform.IsChildOf (transform)) { if(data.type.ToString().Contains("Seal")) { Messenger.Broadcast (GameEventType.SealDragBanKuai, gameObject , (int)data.type % 10); data.SetCD (); } else if(data.type == SkillType.Skill2) { Messenger.Broadcast (GameEventType.SkillDragBanKuai, gameObject); } } } }