|
|
|
@ -119,11 +119,15 @@ public class AgentController : MonoBehaviour
|
|
|
|
|
{ |
|
|
|
|
if (GetComponent<FireRobotController>()) |
|
|
|
|
{ |
|
|
|
|
if (GetComponent<FireRobotLayWaterHose>().remainlenght<0.5f) |
|
|
|
|
if (GetComponent<FireRobotController>().WorkType== FireRobotSkill.出水|| |
|
|
|
|
GetComponent<FireRobotController>().WorkType == FireRobotSkill.出泡沫) |
|
|
|
|
{ |
|
|
|
|
if (GetComponent<FireRobotLayWaterHose>().remainlenght < 0.5f) |
|
|
|
|
{ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
begionmove = true; |
|
|
|
|
var data = (PathFindingCmdArgs)obj.Data; |
|
|
|
|
pointhit = data.hitPoint; |
|
|
|
|