From 7d080bc929c5a5c5e9d84393de062fa5e5c6fdd6 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Sat, 13 Jun 2026 09:19:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Unity=20=E6=B5=8B=E8=AF=95=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=20-=20=E7=81=AB=E5=8A=9B=E5=8D=95=E5=85=83=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=208=C3=973=20=E5=8F=91=EF=BC=88=E4=B8=8E=E9=9B=86?= =?UTF-8?q?=E6=88=90=E6=B5=8B=E8=AF=95=E4=B8=80=E8=87=B4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CounterDrone.Core/CounterDrone.Core.dll | Bin 115712 -> 115712 bytes .../Scripts/Managers/ManagerVerification.cs | 15 +++++++++++---- .../Scripts/Managers/SimulationBootstrap.cs | 15 +++++++++++---- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/Unity/Assets/Plugins/CounterDrone.Core/CounterDrone.Core.dll b/src/Unity/Assets/Plugins/CounterDrone.Core/CounterDrone.Core.dll index e7f76b48ce0442c1e69ee2473eb9ecf21c926fb1..f57dbb9bef529399f3cfc9caa16761475e69a9b3 100644 GIT binary patch delta 247 zcmZqZU~lMPpU}b5!4WyFv1e-!W6m6b95OAF(~6jM|4#MH#(nj45kdm4CV|e42D3q5sg$WLWR1d160<{9 delta 247 zcmZqZU~lMPpU}Z#_G;qC#-6P`j5%`z6j}cCn#kpP?20b#a7=6z+|DtVahj}#aiUS0 znMIO;QIe%`s=1kYin)ckxtWQPfkm20icyMrnpsM!v4KJA_G7ykr!lg;P~!PNJz)=H zfWVtN9pfYS%YC~gb8nPXojpJOz#hhG1*qsT6peb778SG(UIb6RuY>BsHSdl|1X z`x`SPG8i$WF_{6#AhrNv5YGfCYXIb>0a+$l)Bpeg diff --git a/src/Unity/Assets/Scripts/Managers/ManagerVerification.cs b/src/Unity/Assets/Scripts/Managers/ManagerVerification.cs index 1157fd3..93471a9 100644 --- a/src/Unity/Assets/Scripts/Managers/ManagerVerification.cs +++ b/src/Unity/Assets/Scripts/Managers/ManagerVerification.cs @@ -61,10 +61,17 @@ namespace CounterDrone.Unity Route = detail.Routes[0], Waypoints = detail.WaypointGroups["default"], }; - var fireUnits = new List - { - new FireUnit { Id = "u0", Type = PlatformType.GroundBased, Position = new AVector3(5000, 0, 50), MuzzleVelocity = 800, TotalMunitions = 1, AmmoTypes = new() { AerosolType.InertGas, AerosolType.ActiveMaterial, AerosolType.ActiveFuel } }, - }; + var fireUnits = new List(); + for (int i = 0; i < 8; i++) + fireUnits.Add(new FireUnit + { + Id = $"u{i}", + Type = PlatformType.GroundBased, + Position = new AVector3(5000 + i * 50, 0, 50), + MuzzleVelocity = 800, + TotalMunitions = 3, + AmmoTypes = new() { AerosolType.InertGas, AerosolType.ActiveMaterial, AerosolType.ActiveFuel }, + }); var result = new DefaultDefensePlanner(ammoCatalog).Plan(fireUnits, new List { droneGroup }, detail.Scene); scenarioMgr.SaveCloud(taskId, new CloudDispersal { diff --git a/src/Unity/Assets/Scripts/Managers/SimulationBootstrap.cs b/src/Unity/Assets/Scripts/Managers/SimulationBootstrap.cs index 61ad115..61813b9 100644 --- a/src/Unity/Assets/Scripts/Managers/SimulationBootstrap.cs +++ b/src/Unity/Assets/Scripts/Managers/SimulationBootstrap.cs @@ -74,10 +74,17 @@ namespace CounterDrone.Unity Route = detail.Routes[0], Waypoints = detail.WaypointGroups["default"], }; - var fireUnits = new List - { - new FireUnit { Id = "u0", Type = PlatformType.GroundBased, Position = new AVector3(5000, 0, 50), MuzzleVelocity = 800, TotalMunitions = 1, AmmoTypes = new() { AerosolType.InertGas, AerosolType.ActiveMaterial, AerosolType.ActiveFuel } }, - }; + var fireUnits = new List(); + for (int i = 0; i < 8; i++) + fireUnits.Add(new FireUnit + { + Id = $"u{i}", + Type = PlatformType.GroundBased, + Position = new AVector3(5000 + i * 50, 0, 50), + MuzzleVelocity = 800, + TotalMunitions = 3, + AmmoTypes = new() { AerosolType.InertGas, AerosolType.ActiveMaterial, AerosolType.ActiveFuel }, + }); var result = planner.Plan(fireUnits, new List { droneGroup }, detail.Scene); scenario.SaveCloudDispersal(taskId, new CloudDispersal {