From 3beb50a1d205c3632f20bf5cb2ea570487f73b69 Mon Sep 17 00:00:00 2001 From: sizhongzhan <2287711279@qq.com> Date: Tue, 14 Apr 2026 18:10:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E6=8E=A7=E5=88=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=99=A8=E4=B8=8A=E4=BC=A0=EF=BC=8C=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=9C=A8=E7=95=8C=E9=9D=A2=E9=80=89=E6=8B=A9=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E7=9A=84=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/GameAssets/Prefabs/打包控制器.prefab | 49 ++++++++++++++ .../GameAssets/Prefabs/打包控制器.prefab.meta | 7 ++ Assets/Scenes/Models _tsq.unity | 65 +++++++++++++++++-- .../Resources/EquipmentStructureView.prefab | 12 ++++ .../Scripts/UIView/EquipmentStructureView.cs | 38 +++++++++-- Assets/Zion/Scripts/Utils/BuildManager.cs | 19 ++++++ .../Zion/Scripts/Utils/BuildManager.cs.meta | 11 ++++ .../Layouts/CurrentMaximizeLayout.dwlt | 34 +++++----- 8 files changed, 209 insertions(+), 26 deletions(-) create mode 100644 Assets/GameAssets/Prefabs/打包控制器.prefab create mode 100644 Assets/GameAssets/Prefabs/打包控制器.prefab.meta create mode 100644 Assets/Zion/Scripts/Utils/BuildManager.cs create mode 100644 Assets/Zion/Scripts/Utils/BuildManager.cs.meta diff --git a/Assets/GameAssets/Prefabs/打包控制器.prefab b/Assets/GameAssets/Prefabs/打包控制器.prefab new file mode 100644 index 0000000..442f203 --- /dev/null +++ b/Assets/GameAssets/Prefabs/打包控制器.prefab @@ -0,0 +1,49 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &872924480024583430 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 872924480024583432} + - component: {fileID: 872924480024583433} + m_Layer: 0 + m_Name: "\u6253\u5305\u63A7\u5236\u5668" + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &872924480024583432 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 872924480024583430} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &872924480024583433 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 872924480024583430} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: eb037169953744549be6ede6cafb352b, type: 3} + m_Name: + m_EditorClassIdentifier: + isConclutedAirCondition: 1 + isConclutedPump: 1 + isConclutedAirCompressor: 1 diff --git a/Assets/GameAssets/Prefabs/打包控制器.prefab.meta b/Assets/GameAssets/Prefabs/打包控制器.prefab.meta new file mode 100644 index 0000000..4d0021d --- /dev/null +++ b/Assets/GameAssets/Prefabs/打包控制器.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 9ec375036c37ece4aaf906d02f390247 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Models _tsq.unity b/Assets/Scenes/Models _tsq.unity index 6e05c94..31869f9 100644 --- a/Assets/Scenes/Models _tsq.unity +++ b/Assets/Scenes/Models _tsq.unity @@ -2764,7 +2764,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 356366128} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.098803386, y: 1.045672, z: 0.118324734} + m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] @@ -29007,6 +29007,63 @@ MonoBehaviour: minIntensity: 0.2 maxIntensity: 0.8 hoverDelay: 1.5 +--- !u!1001 &872924481090035873 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 872924480024583430, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_Name + value: "\u6253\u5305\u63A7\u5236\u5668" + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_RootOrder + value: 24 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 872924480024583432, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 9ec375036c37ece4aaf906d02f390247, type: 3} --- !u!1001 &1488738078823541918 PrefabInstance: m_ObjectHideFlags: 0 @@ -29020,15 +29077,15 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 2085014406165613580, guid: d6e3b7e84aa670e448f9f1831c8c62d0, type: 3} propertyPath: m_LocalPosition.x - value: -0.08704327 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2085014406165613580, guid: d6e3b7e84aa670e448f9f1831c8c62d0, type: 3} propertyPath: m_LocalPosition.y - value: 0.040951803 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2085014406165613580, guid: d6e3b7e84aa670e448f9f1831c8c62d0, type: 3} propertyPath: m_LocalPosition.z - value: -0.012250572 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2085014406165613580, guid: d6e3b7e84aa670e448f9f1831c8c62d0, type: 3} propertyPath: m_LocalRotation.w diff --git a/Assets/UIView/EquipmentStructureView/Resources/EquipmentStructureView.prefab b/Assets/UIView/EquipmentStructureView/Resources/EquipmentStructureView.prefab index a1cb2ec..c755fea 100644 --- a/Assets/UIView/EquipmentStructureView/Resources/EquipmentStructureView.prefab +++ b/Assets/UIView/EquipmentStructureView/Resources/EquipmentStructureView.prefab @@ -27874,6 +27874,18 @@ MonoBehaviour: objectValue: {fileID: 7901037396216528395} dataValue: variableType: 10 + - name: "\u7A7A\u8C03" + objectValue: {fileID: 8343772854449745245} + dataValue: + variableType: 10 + - name: "\u6CF5" + objectValue: {fileID: 3176413909984815128} + dataValue: + variableType: 10 + - name: "\u7A7A\u538B\u673A" + objectValue: {fileID: 6286428596020413016} + dataValue: + variableType: 10 animators: [] deviceBtns: - {fileID: 4543702428750999084} diff --git a/Assets/Zion/Scripts/UIView/EquipmentStructureView.cs b/Assets/Zion/Scripts/UIView/EquipmentStructureView.cs index 7041d01..ada9833 100644 --- a/Assets/Zion/Scripts/UIView/EquipmentStructureView.cs +++ b/Assets/Zion/Scripts/UIView/EquipmentStructureView.cs @@ -48,9 +48,11 @@ public class EquipmentStructureView : UIView { base.OnInit(data); variables.Set("my_EquipmentStructure", this); + + Init(); } - void Start() + void Init() { models.Clear(); GameObject trans = GameObject.Find("AllModels"); @@ -63,7 +65,34 @@ public class EquipmentStructureView : UIView } } + + focusDevices = "空调"; models.RemoveAt(0); + ///打包部分检测 + if (!BuildManager.Instance.isConclutedAirCondition && BuildManager.Instance.isConclutedAirCompressor && !BuildManager.Instance.isConclutedPump) + { + + models.RemoveAt(1); + models.RemoveAt(0); + + variables.Get("空调").gameObject.Deactivate(); + variables.Get("泵").gameObject.Deactivate(); + variables.Get("空压机").gameObject.Deactivate(); + focusDevices = "空压机"; + } + if (!BuildManager.Instance.isConclutedAirCondition && BuildManager.Instance.isConclutedPump && !BuildManager.Instance.isConclutedAirCompressor) + { + + models.RemoveAt(2); + models.RemoveAt(0); + + variables.Get("空调").gameObject.Deactivate(); + variables.Get("空压机").gameObject.Deactivate(); + variables.Get("泵").gameObject.Deactivate(); + + focusDevices = "泵"; + } + models[0].Activate(); @@ -74,7 +103,6 @@ public class EquipmentStructureView : UIView enhancedModelViewerOrbitCamera.SetTarget(models[0].transform); modelSpreadController.SetTarget(models[0].transform); - focusDevices = "空调"; InitLeftBtns(); @@ -130,11 +158,11 @@ public class EquipmentStructureView : UIView variables.Get