protected override int OnRunning(NodeData wData)
        {
            EntityWorkData    workData = wData as EntityWorkData;
            NodeActionContext context  = GetContext <NodeActionContext>(wData);
            PushSkillData     userData = context.GetUserData <PushSkillData>();

            SkillCom skillCom = workData.MEntity.GetCom <SkillCom>();

            if (userData.skillId == "-1" || skillCom.CheckSkillIsFinish(userData.skillId))
            {
                Debug.LogError("完成》》》》》" + userData.skillId);
                Debug.LogError("完成》》》》》" + skillCom.CheckSkillIsFinish(userData.skillId));
                return(NodeState.FINISHED);
            }
            else
            {
                return(NodeState.EXECUTING);
            }
        }
        protected override void OnExit(NodeData wData, int runningStatus)
        {
            EntityWorkData    workData = wData as EntityWorkData;
            NodeActionContext context  = GetContext <NodeActionContext>(wData);
            PushSkillData     userData = context.GetUserData <PushSkillData>();

            userData.skillId = "-1";

            //打断移动
            SkillCom skillCom = workData.MEntity.GetCom <SkillCom>();

            skillCom.StopSkill();
            AnimCom animCom = workData.MEntity.GetCom <AnimCom>();

            if (animCom != null)
            {
                animCom.SetReqAnim(AnimSystem.IdleState);
            }
        }
        protected override void OnEnter(NodeData wData)
        {
            EntityWorkData workData = wData as EntityWorkData;
            string         skillId  = workData.GetParam().GetString();

            //获取环境数据
            NodeActionContext context  = GetContext <NodeActionContext>(wData);
            PushSkillData     userData = context.GetUserData <PushSkillData>();

            userData.skillId = skillId;

            //打断移动
            TransformCom transformCom = workData.MEntity.GetCom <TransformCom>();

            if (transformCom != null)
            {
                transformCom.ReqMove = Vector3.zero;
                transformCom.ReqDir  = DirType.None;
            }
            PlayerMoveCom moveCom = workData.MEntity.GetCom <PlayerMoveCom>();

            if (moveCom != null)
            {
                moveCom.HasNoReqMove = true;
                moveCom.Rig.velocity = Vector2.zero;
            }

            //释放技能
            SkillCom skillCom = workData.MEntity.GetCom <SkillCom>();

            if (skillCom.ReleaseSkill(skillId))
            {
                userData.skillId = skillId;
                LCECS.ECSLocate.Log.Log("释放技能成功>>>>>", skillId);
            }
            else
            {
                userData.skillId = "-1";
                LCECS.ECSLocate.Log.LogError("释放技能失败>>>>>", skillId);
            }
        }