Exemplo n.º 1
0
        protected override void OnEnter(NodeData wData)
        {
            EntityWorkData workData = wData as EntityWorkData;
            //参数
            ParamData  param     = workData.GetReqParam((EntityReqId)workData.CurrReqId);
            Vector2Int targetPos = param.GetVect2Int();
            //对组件赋值
            SeekPathCom seekPathCom = workData.MEntity.GetCom <SeekPathCom>();

            if (!seekPathCom.TargetPos.Equals(targetPos))
            {
                seekPathCom.TargetPos = targetPos;
                seekPathCom.ReqSeek   = true;
            }
        }