diff --git a/Assets/Zion/Scripts/Adam/FormationManager.cs b/Assets/Zion/Scripts/Adam/FormationManager.cs index 01252b95..fbd28178 100644 --- a/Assets/Zion/Scripts/Adam/FormationManager.cs +++ b/Assets/Zion/Scripts/Adam/FormationManager.cs @@ -60,6 +60,7 @@ public class FormationManager : MonoSingleton { uavmTemp.isGroup = true; uavmTemp.groupId = formationInfo.groupIndex; + uavmTemp.SetGroupTips(formationInfo.groupIndex); formationInfo.uavms.Add(uavmTemp); } } diff --git a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs index 5650e9bd..a86dbd92 100644 --- a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs +++ b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs @@ -65,7 +65,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour public int groupId = -1; public bool isGroup = false; - + /// /// 无人机预制体 /// @@ -201,6 +201,18 @@ public class UnmannedAerialVehicleManage : MonoBehaviour } + /// + /// 设置组得标志 + /// + public void SetGroupTips(int index) + { + UnmannedAerialVehicle uav = unmannedAerialVehicles[0]; + if (uav != null) + { + uav.tips.text = uav.tips.text + "\n" + "组" + index.ToString(); + } + } + /// /// 频段设置 ///