|
|
@ -146,6 +146,7 @@ public class FireRobotLayWaterHose : MonoBehaviour |
|
|
|
if (remainlenght <= 0.5f) |
|
|
|
if (remainlenght <= 0.5f) |
|
|
|
{ |
|
|
|
{ |
|
|
|
agent.SetDestination(transform.position); |
|
|
|
agent.SetDestination(transform.position); |
|
|
|
|
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
HasUseNum = Mathf.CeilToInt(GetSelfConsumedLength() / 20); |
|
|
|
HasUseNum = Mathf.CeilToInt(GetSelfConsumedLength() / 20); |
|
|
|
ParentLayHose.GetComponent<ParentLayWaterHoseMsg>().LineLenght = GetSelfConsumedLength(); |
|
|
|
ParentLayHose.GetComponent<ParentLayWaterHoseMsg>().LineLenght = GetSelfConsumedLength(); |
|
|
|