|
|
|
@ -119,9 +119,13 @@ public class AgentController : MonoBehaviour
|
|
|
|
|
{ |
|
|
|
|
if (GetComponent<FireRobotController>()) |
|
|
|
|
{ |
|
|
|
|
if (GetComponent<FireRobotLayWaterHose>().remainlenght<0.5f) |
|
|
|
|
if (GetComponent<FireRobotController>().WorkType== FireRobotSkill.出水|| |
|
|
|
|
GetComponent<FireRobotController>().WorkType == FireRobotSkill.出泡沫) |
|
|
|
|
{ |
|
|
|
|
return; |
|
|
|
|
if (GetComponent<FireRobotLayWaterHose>().remainlenght < 0.5f) |
|
|
|
|
{ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
begionmove = true; |
|
|
|
|