@ -117,6 +117,13 @@ public class AgentController : MonoBehaviour
{
if (pathFindEnable /*&& !FixedArmFlag*/)
if (GetComponent<FireRobotController>())
if (GetComponent<FireRobotLayWaterHose>().remainlenght<0.5f)
return;
}
begionmove = true;
var data = (PathFindingCmdArgs)obj.Data;
pointhit = data.hitPoint;
@ -146,6 +146,7 @@ public class FireRobotLayWaterHose : MonoBehaviour
if (remainlenght <= 0.5f)
agent.SetDestination(transform.position);
HasUseNum = Mathf.CeilToInt(GetSelfConsumedLength() / 20);
ParentLayHose.GetComponent<ParentLayWaterHoseMsg>().LineLenght = GetSelfConsumedLength();