refactor(Facility): 使用继承让所有机关都拥有了独自的 可交互 可编辑 可连接设定。大面积重构

This commit is contained in:
2025-10-22 17:34:58 +08:00
parent 3cdd41ea49
commit 3a0b202325
61 changed files with 1516 additions and 889 deletions

View File

@@ -11,7 +11,6 @@ GameObject:
- component: {fileID: 3847687401012981401}
- component: {fileID: 2162166433128526064}
- component: {fileID: 6287391807755848414}
- component: {fileID: 1340299133424398822}
m_Layer: 0
m_Name: Sphere
m_TagString: Untagged
@@ -28,7 +27,7 @@ Transform:
m_GameObject: {fileID: 4251861204989412305}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.48, z: 0}
m_LocalPosition: {x: 0, y: 0.45, z: 0}
m_LocalScale: {x: 0.47, y: 0.47, z: 0.47}
m_ConstrainProportionsScale: 1
m_Children: []
@@ -84,27 +83,6 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!135 &1340299133424398822
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4251861204989412305}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Radius: 0.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &6268190613584218029
GameObject:
m_ObjectHideFlags: 0
@@ -136,7 +114,7 @@ Transform:
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 25, y: 0.8, z: -5}
m_LocalScale: {x: -0.51, y: 0.8, z: 0.46}
m_LocalScale: {x: 0.6, y: 0.6, z: 0.6}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3847687401012981401}
@@ -225,7 +203,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 2791e039b8344f45ad6dc86f5188d82d, type: 3}
m_Name:
m_EditorClassIdentifier:
isActive: 1
isEnableEdit: 1
isOpenInEditor: 1
--- !u!114 &3535959014221630543
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -238,6 +217,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: cc0b1376aefb4cccb530717966b48bf5, type: 3}
m_Name:
m_EditorClassIdentifier:
isEnableInteract: 1
isEnableEdit: 1
isEnableConnect: 1
componentName:
needSignalCount: 2
controlTarget: {fileID: 0}
IsActive: 0
isOpenInEditor: 1
controlTarget:
- {fileID: 0}
IsBeActive: 0