Browse Source

灭火机器人不能移动修改(添加判断的时候没有添加技能判断)

develop
曹衍涛 4 years ago
parent
commit
3c73ca2984
  1. 8
      Assets/Scripts/Common/Cars/AgentController.cs
  2. 2
      Assets/Scripts/Common/DisasterLibrary/FireLiquidLevelRecord.cs

8
Assets/Scripts/Common/Cars/AgentController.cs

@ -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;

2
Assets/Scripts/Common/DisasterLibrary/FireLiquidLevelRecord.cs

@ -33,6 +33,6 @@ public class FireLiquidLevelRecord : DisasterLibraryRecord
public override void OnDestroy()
{
base.OnDestroy();
Debug.LogError(gameObject.name);
}
}

Loading…
Cancel
Save