public bool CastSkill(SkillBase skill) { if (skill == null || m_bIsCasting || skill.IsInCD) { return(false); } m_entity.Move.StopMove(false); m_entity.Anim.Stop(); m_curSkill = skill; if (m_curSkill.IsNormalAttackSkill) //普攻 { m_bIsCasting = false; //普攻不算技能释放 } else { m_curSkill.BeginCD(); m_bIsCasting = true; } RegSkillEvent(m_curSkill); return(true); }