This commit is contained in:
账号名 2023-11-24 15:45:44 +08:00
parent d8e6bad2e4
commit 154d3d1c30
3 changed files with 8 additions and 1 deletions

View File

@ -164,7 +164,10 @@ public class EquipmentCommon : MonoBehaviour
/// 已有路径
/// </summary>
public Queue<Vector3> positions = new Queue<Vector3>();
private void Update()
{
StartMoveObjectAlongPath();
}
public bool isMove = true;
/// <summary>

View File

@ -279,6 +279,8 @@ public class LaserFireControlPlatformManger : MonoBehaviour
private void OnDestroy()
{
Destroy(InnerLaserlineRenderer.gameObject);
Destroy(OuterLaserlineRenderer.gameObject);
OnActivationChanged -= OnActivationChangedHandler;
}
}

View File

@ -172,6 +172,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
headers.Add("id", equipmentCommon.deviceID);
StartCoroutine(GetString(Url_Deletepracticedevicedetail, headers, data => {
Debug.Log(data);
Destroy(gameObject);
}));
}
}
@ -541,6 +542,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
}
private void OnDestroy()
{
Destroy(airRoute.gameObject);
OnActivationChanged -= OnActivationChangedHandler;
}