Merge branch 'main' of http://172.16.1.12/WangWeiZhi/YanCheng_Metrology
This commit is contained in:
commit
f4beaae9c5
|
@ -123,8 +123,8 @@ CapsuleCollider:
|
|||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
m_Radius: 0.5
|
||||
m_Height: 2
|
||||
m_Radius: 0.2
|
||||
m_Height: 1.7
|
||||
m_Direction: 1
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &7005868485670428847
|
||||
|
|
|
@ -1168,7 +1168,7 @@ GameObject:
|
|||
- component: {fileID: 4658103605771657434}
|
||||
- component: {fileID: 2797656432174285614}
|
||||
m_Layer: 0
|
||||
m_Name: "\u4E09\u76F8\u56DB\u7EBF\u7535\u80FD\u8868"
|
||||
m_Name: "\u4E09\u76F8\u56DB\u7EBF\u7535\u80FD\u8868_xxx"
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0ea8c75644dbff14bacec41ed2dc6efc
|
||||
DefaultImporter:
|
||||
guid: 10f4454f32eb20e4298912d896f6020e
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
|
@ -31,6 +31,8 @@ RectTransform:
|
|||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1689929310}
|
||||
- {fileID: 5879227229163359814}
|
||||
- {fileID: 3855241710097231104}
|
||||
- {fileID: 313023283}
|
||||
m_Father: {fileID: 3654540742598116600}
|
||||
m_RootOrder: 0
|
||||
|
@ -87,6 +89,7 @@ GameObject:
|
|||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 107056970}
|
||||
- component: {fileID: 2134631234}
|
||||
m_Layer: 5
|
||||
m_Name: Content
|
||||
m_TagString: Untagged
|
||||
|
@ -106,23 +109,36 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1097090143193896257}
|
||||
- {fileID: 924176059}
|
||||
- {fileID: 4704270928333874369}
|
||||
- {fileID: 7475986469163045628}
|
||||
- {fileID: 4031383086894429222}
|
||||
- {fileID: 3533447696354477250}
|
||||
- {fileID: 2755684646752163517}
|
||||
- {fileID: 4599615484544120457}
|
||||
- {fileID: 3364259029635073816}
|
||||
- {fileID: 5879227229163359814}
|
||||
- {fileID: 3855241710097231104}
|
||||
m_Father: {fileID: 1995774216}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 1033.2917}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 34, y: 0}
|
||||
m_SizeDelta: {x: 978.5089, y: 956}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!114 &2134631234
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 107056969}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 0
|
||||
m_VerticalFit: 0
|
||||
--- !u!1 &313023282
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -157,13 +173,13 @@ RectTransform:
|
|||
- {fileID: 1995774216}
|
||||
- {fileID: 1780928670}
|
||||
m_Father: {fileID: 59446052}
|
||||
m_RootOrder: 1
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0.874}
|
||||
m_AnchoredPosition: {x: 0, y: 1.5}
|
||||
m_SizeDelta: {x: 0, y: 3}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -78}
|
||||
m_SizeDelta: {x: 1050, y: 484.0483}
|
||||
m_Pivot: {x: 0.5, y: 1}
|
||||
--- !u!222 &313023286
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -261,15 +277,16 @@ RectTransform:
|
|||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1097090143193896257}
|
||||
m_RootOrder: 1
|
||||
m_Children:
|
||||
- {fileID: 1097090143193896257}
|
||||
m_Father: {fileID: 107056970}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: -14, y: -8}
|
||||
m_AnchoredPosition: {x: 0, y: -42}
|
||||
m_SizeDelta: {x: 92, y: 21}
|
||||
m_Pivot: {x: 1, y: 1}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &924176061
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -402,7 +419,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -20, y: -20}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &1689929309
|
||||
GameObject:
|
||||
|
@ -489,7 +506,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 1, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: -20, y: -34}
|
||||
m_SizeDelta: {x: 22.1054, y: 622.3079}
|
||||
m_SizeDelta: {x: 22.1054, y: 529.47}
|
||||
m_Pivot: {x: 1, y: 1}
|
||||
--- !u!222 &1780928673
|
||||
CanvasRenderer:
|
||||
|
@ -572,8 +589,8 @@ MonoBehaviour:
|
|||
m_TargetGraphic: {fileID: 1811112674}
|
||||
m_HandleRect: {fileID: 1811112673}
|
||||
m_Direction: 2
|
||||
m_Value: 1
|
||||
m_Size: 0.54762465
|
||||
m_Value: 0.99999994
|
||||
m_Size: 0.5063267
|
||||
m_NumberOfSteps: 0
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -614,7 +631,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 20, y: 20}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1811112675
|
||||
CanvasRenderer:
|
||||
|
@ -693,7 +710,7 @@ RectTransform:
|
|||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1995774219
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1351,18 +1368,18 @@ RectTransform:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 356495793340954476}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
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:
|
||||
- {fileID: 5780500777112997426}
|
||||
m_Father: {fileID: 3533447696354477250}
|
||||
m_Father: {fileID: 5749827229883739022}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 235, y: -37}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 478, y: -50}
|
||||
m_SizeDelta: {x: 956, y: 36}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2301589033225948877
|
||||
|
@ -2675,7 +2692,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: -6.2, y: 0}
|
||||
m_AnchoredPosition: {x: -14, y: -8.5}
|
||||
m_SizeDelta: {x: 21.7626, y: -17}
|
||||
m_Pivot: {x: 1, y: 1}
|
||||
--- !u!222 &6541348181733156628
|
||||
|
@ -4396,13 +4413,13 @@ RectTransform:
|
|||
- {fileID: 8813782146055326700}
|
||||
- {fileID: 4159243742621048825}
|
||||
m_Father: {fileID: 107056970}
|
||||
m_RootOrder: 4
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -419.4, y: 190}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 0, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 170.19995}
|
||||
m_SizeDelta: {x: 106, y: 21}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!222 &2392045896982425394
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -4657,11 +4674,11 @@ RectTransform:
|
|||
m_Father: {fileID: 3364259029635073816}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 635, y: -176}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 487.3, y: -8}
|
||||
m_SizeDelta: {x: 468, y: 312}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
m_Pivot: {x: 0, y: 1.0000001}
|
||||
--- !u!222 &3639917004986938328
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -4871,7 +4888,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 44, y: -82}
|
||||
m_AnchoredPosition: {x: 0, y: -82}
|
||||
m_SizeDelta: {x: 232, y: 21}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &6855310515995072597
|
||||
|
@ -5080,6 +5097,43 @@ MonoBehaviour:
|
|||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!1 &2578640652711806351
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5749827229883739022}
|
||||
m_Layer: 5
|
||||
m_Name: GameObject
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &5749827229883739022
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2578640652711806351}
|
||||
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:
|
||||
- {fileID: 1466350726877476667}
|
||||
m_Father: {fileID: 3533447696354477250}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -194, y: -39.5}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &2596595932327537848
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -5398,12 +5452,12 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3533447696354477250}
|
||||
m_RootOrder: 1
|
||||
m_Father: {fileID: 107056970}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 234.80444, y: -72.8}
|
||||
m_AnchoredPosition: {x: -11.254, y: -250.8}
|
||||
m_SizeDelta: {x: 956, y: 36}
|
||||
m_Pivot: {x: 0.5, y: 1.0000001}
|
||||
--- !u!222 &5048485349505778235
|
||||
|
@ -6518,11 +6572,11 @@ RectTransform:
|
|||
m_Father: {fileID: 3364259029635073816}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 149.5, y: -175.40002}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: -8}
|
||||
m_SizeDelta: {x: 468, y: 312}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &5425936997880607031
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -6802,14 +6856,13 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1466350726877476667}
|
||||
- {fileID: 4031383086894429222}
|
||||
- {fileID: 5749827229883739022}
|
||||
m_Father: {fileID: 107056970}
|
||||
m_RootOrder: 3
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 44, y: -178}
|
||||
m_AnchoredPosition: {x: 0, y: -178}
|
||||
m_SizeDelta: {x: 488, y: 21}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &708812292294675129
|
||||
|
@ -6946,7 +6999,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: -5.5, y: 0}
|
||||
m_AnchoredPosition: {x: -14, y: -10.7}
|
||||
m_SizeDelta: {x: 22.4161, y: -17}
|
||||
m_Pivot: {x: 1, y: 1}
|
||||
--- !u!222 &6960982968646939113
|
||||
|
@ -9058,7 +9111,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: -29.3, y: -34}
|
||||
m_AnchoredPosition: {x: -29.300049, y: -34}
|
||||
m_SizeDelta: {x: 360, y: 36}
|
||||
m_Pivot: {x: 1, y: 1}
|
||||
--- !u!222 &8332412935936888752
|
||||
|
@ -10084,13 +10137,12 @@ RectTransform:
|
|||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1003711475360801014}
|
||||
- {fileID: 924176059}
|
||||
m_Father: {fileID: 107056970}
|
||||
m_Father: {fileID: 924176059}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 150, y: -34}
|
||||
m_AnchorMin: {x: 1, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: 14, y: 18}
|
||||
m_SizeDelta: {x: 360, y: 36}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &8259768406327632652
|
||||
|
@ -10834,12 +10886,12 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 107056970}
|
||||
m_RootOrder: 7
|
||||
m_Father: {fileID: 59446052}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0}
|
||||
m_AnchoredPosition: {x: -171.0857, y: 34}
|
||||
m_AnchoredPosition: {x: -182, y: 34}
|
||||
m_SizeDelta: {x: 100, y: 36}
|
||||
m_Pivot: {x: 1, y: 0}
|
||||
--- !u!222 &5021147924941287437
|
||||
|
@ -11303,11 +11355,11 @@ RectTransform:
|
|||
- {fileID: 5620092988020911199}
|
||||
- {fileID: 7227599259414342308}
|
||||
m_Father: {fileID: 107056970}
|
||||
m_RootOrder: 6
|
||||
m_RootOrder: 7
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -385.5, y: -86}
|
||||
m_AnchoredPosition: {x: -400.75, y: -86}
|
||||
m_SizeDelta: {x: 177, y: 21}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8445885940180315578
|
||||
|
@ -11630,11 +11682,11 @@ RectTransform:
|
|||
- {fileID: 2963898299955172258}
|
||||
- {fileID: 6016040151706726244}
|
||||
m_Father: {fileID: 107056970}
|
||||
m_RootOrder: 5
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -350, y: 111}
|
||||
m_AnchoredPosition: {x: -366.25, y: 111.6}
|
||||
m_SizeDelta: {x: 246, y: 21}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7496227892135041332
|
||||
|
@ -12109,12 +12161,12 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 107056970}
|
||||
m_RootOrder: 8
|
||||
m_Father: {fileID: 59446052}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0}
|
||||
m_AnchoredPosition: {x: -39.39988, y: 34}
|
||||
m_AnchoredPosition: {x: -50, y: 34}
|
||||
m_SizeDelta: {x: 100, y: 36}
|
||||
m_Pivot: {x: 1, y: 0}
|
||||
--- !u!222 &424957404513236065
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a39ba73cc2686bf42b78647875bb8a23
|
||||
guid: b89569af6fe931647be081fff26b1b94
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -53,8 +53,8 @@ public class Device_Cover : Device_Base
|
|||
{
|
||||
Debug.Log("打开盖子");
|
||||
isOpen = true;
|
||||
transform.DOLocalMoveY(transform.localPosition.y - 0.15f, 2);
|
||||
transform.DOLocalMoveZ(transform.localPosition.z - 0.15f, 2);
|
||||
transform.DOLocalMoveY(-0.1388763f, 2);
|
||||
transform.DOLocalMoveZ(-0.2485413f, 2);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -64,7 +64,7 @@ public class Device_Cover : Device_Base
|
|||
{
|
||||
Debug.Log("盖上盖子");
|
||||
isOpen = false;
|
||||
transform.DOLocalMoveY(transform.localPosition.y + 0.15f, 2);
|
||||
transform.DOLocalMoveZ(transform.localPosition.z + 0.15f, 2);
|
||||
transform.DOLocalMoveY(0.01112366f, 2);
|
||||
transform.DOLocalMoveZ(-0.09854126f, 2);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using DG.Tweening;
|
||||
using Sirenix.Utilities;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
|
@ -9,11 +9,6 @@ using UnityEngine;
|
|||
/// </summary>
|
||||
public class Device_DirectAccessElectricEnergyMeteringDevice : Device_Base
|
||||
{
|
||||
public static Device_DirectAccessElectricEnergyMeteringDevice instance;
|
||||
/// <summary>
|
||||
/// 是否已被拆除
|
||||
/// </summary>
|
||||
public bool isRemove;
|
||||
/// <summary>
|
||||
/// 铭牌
|
||||
/// </summary>
|
||||
|
@ -24,13 +19,6 @@ public class Device_DirectAccessElectricEnergyMeteringDevice : Device_Base
|
|||
/// </summary>
|
||||
public Device_Cover cover;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 电能表接线
|
||||
/// </summary>
|
||||
[Tooltip("接线")]
|
||||
public List<Tool_Line> jieXian_lines;
|
||||
|
||||
/// <summary>
|
||||
/// 电能表固定螺丝左
|
||||
/// </summary>
|
||||
|
@ -39,14 +27,61 @@ public class Device_DirectAccessElectricEnergyMeteringDevice : Device_Base
|
|||
/// 电能表固定螺丝右
|
||||
/// </summary>
|
||||
public Tool_Screw fix_screw_right;
|
||||
/// <summary>
|
||||
/// 电能表接线螺丝
|
||||
/// </summary>
|
||||
public List<Tool_Screw> jieXian_screws;
|
||||
|
||||
|
||||
private BoxCollider boxCollider;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
instance = this;
|
||||
boxCollider = GetComponent<BoxCollider>();
|
||||
if(UnityEngine.SceneManagement.SceneManager.GetActiveScene().name== "05_LiveScene")
|
||||
{
|
||||
boxCollider.enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 初始化电能表状态(默认是装好的状态不用设置)
|
||||
/// </summary>
|
||||
/// <param name="isIntsalledState"></param>
|
||||
public void Init(bool isIntsalledState)
|
||||
{
|
||||
if(!isIntsalledState)
|
||||
{
|
||||
Debug.Log("电能表设置为拆下状态");
|
||||
//盖子拆除
|
||||
cover.isOpen = true;
|
||||
cover.transform.localPosition = new Vector3(0.0001220703f, -0.1388763f, -0.2485413f);
|
||||
//左螺丝拧下
|
||||
cover.cover_screw_Left.isInstall = false;
|
||||
cover.cover_screw_Left.transform.localPosition = new Vector3(0.06128693f, -0.03405334f, -0.1012321f);
|
||||
//右螺丝拧下
|
||||
cover.cover_screw_Right.isInstall = false;
|
||||
cover.cover_screw_Right.transform.localPosition = new Vector3(-0.06129074f, -0.03405334f, -0.1012321f);
|
||||
//左封印被剪开
|
||||
cover.cover_seal_Left.isCut = true;
|
||||
cover.cover_seal_Left.gameObject.SetActive(false);
|
||||
//右封印被剪开
|
||||
cover.cover_seal_Right.isCut = true;
|
||||
cover.cover_seal_Right.gameObject.SetActive(false);
|
||||
//左固定螺丝拧下
|
||||
fix_screw_left.isInstall = false;
|
||||
fix_screw_left.transform.localPosition = new Vector3(0.06592941f, 0.03107117f, -0.1094047f);
|
||||
//右固定螺丝拧下
|
||||
fix_screw_right.isInstall = false;
|
||||
fix_screw_right.transform.localPosition = new Vector3(-0.06737137f, 0.03107117f, -0.1094047f);
|
||||
//接线螺丝全部拧下
|
||||
jieXian_screws.ForEach(a =>
|
||||
{
|
||||
a.isInstall = false;
|
||||
a.transform.localPosition = new Vector3(a.transform.localPosition.x, 0.005695801f, a.transform.localPosition.z);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -54,18 +89,15 @@ public class Device_DirectAccessElectricEnergyMeteringDevice : Device_Base
|
|||
/// </summary>
|
||||
public void Remove()
|
||||
{
|
||||
if (!isRemove)
|
||||
//拆下电能表
|
||||
if (!fix_screw_left.isInstall && !fix_screw_right.isInstall)
|
||||
{
|
||||
//拆下电能表
|
||||
if (!fix_screw_left.isInstall && !fix_screw_right.isInstall)
|
||||
SiteManager.instance.measuringCabinet.meteringDevice = null;
|
||||
Debug.Log("电能表已拆除");
|
||||
transform.DOLocalMove(transform.localPosition - new Vector3(0, 0.2f, 0.2f), 2).OnComplete(() =>
|
||||
{
|
||||
isRemove = true;
|
||||
Debug.Log("电能表已拆除");
|
||||
transform.DOLocalMove(transform.localPosition - new Vector3(0, 0.2f, 0.2f), 2).OnComplete(() =>
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
});
|
||||
}
|
||||
gameObject.SetActive(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,16 +106,17 @@ public class Device_DirectAccessElectricEnergyMeteringDevice : Device_Base
|
|||
/// </summary>
|
||||
public void Add()
|
||||
{
|
||||
if(isRemove)
|
||||
transform.parent = SiteManager.instance.measuringCabinet.transform;
|
||||
//默认是拆除的状态
|
||||
Init(false);
|
||||
transform.DOLocalMove(new Vector3(0.1469002f, -0.1793365f, 0.5191498f), 2).OnStart(() =>
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
transform.DOLocalMove(transform.localPosition + new Vector3(0, 0.2f, 0.2f), 2).OnComplete(() =>
|
||||
{
|
||||
isRemove = false;
|
||||
Debug.Log("电能表已安装");
|
||||
});
|
||||
}
|
||||
|
||||
transform.localEulerAngles = Vector3.zero;
|
||||
}).OnComplete(() =>
|
||||
{
|
||||
SiteManager.instance.measuringCabinet.meteringDevice = this;
|
||||
LiveSceneManager.Instance.currentTool = null;
|
||||
Debug.Log("电能表已安装");
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
@ -6,6 +7,19 @@ public class Device_Switch : Device_Base
|
|||
{
|
||||
public bool isOpen;
|
||||
|
||||
/// <summary>
|
||||
/// 操作开关事件
|
||||
/// </summary>
|
||||
private Action<bool> actionBack;
|
||||
|
||||
/// <summary>
|
||||
/// 添加开关操作回调
|
||||
/// </summary>
|
||||
/// <param name="actionBack"></param>
|
||||
public void AddAction(Action<bool> actionBack)
|
||||
{
|
||||
this.actionBack= actionBack;
|
||||
}
|
||||
|
||||
private void OnMouseDown()
|
||||
{
|
||||
|
@ -19,5 +33,11 @@ public class Device_Switch : Device_Base
|
|||
isOpen = true;
|
||||
transform.localEulerAngles = new Vector3(0, 0, 0);
|
||||
}
|
||||
|
||||
//调用自定义事件
|
||||
if (actionBack != null)
|
||||
{
|
||||
actionBack.Invoke(isOpen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Unity.VisualScripting;
|
||||
using Unity.VisualScripting.Antlr3.Runtime;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
|
@ -8,7 +10,7 @@ using UnityEngine;
|
|||
public class Device_MeasuringCabinet : Device_Base
|
||||
{
|
||||
/// <summary>
|
||||
/// 直接接入式电能计量装置
|
||||
/// 当前机柜中安装的三相四线电能表
|
||||
/// </summary>
|
||||
public Device_DirectAccessElectricEnergyMeteringDevice meteringDevice;
|
||||
/// <summary>
|
||||
|
@ -23,4 +25,86 @@ public class Device_MeasuringCabinet : Device_Base
|
|||
/// ½øµç¿ª¹Ø
|
||||
/// </summary>
|
||||
public Device_Switch inSwitch;
|
||||
/// <summary>
|
||||
/// 电能表接线
|
||||
/// </summary>
|
||||
public List<Tool_Line> jieXian_screws;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
//添加开关切换回调
|
||||
inSwitch.AddAction(isOpen =>
|
||||
{
|
||||
//刷新带电状态
|
||||
CheckHasElectricity();
|
||||
});
|
||||
|
||||
//添加螺丝拆装回调
|
||||
meteringDevice.jieXian_screws.ForEach(screw =>
|
||||
{
|
||||
screw.AddAction(isinstalled =>
|
||||
{
|
||||
//刷新带电状态
|
||||
CheckHasElectricity();
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 清空接线的螺丝参数
|
||||
/// </summary>
|
||||
public void ClearLineScrew()
|
||||
{
|
||||
Debug.Log("清除接线关联的螺丝");
|
||||
jieXian_screws.ForEach(a =>
|
||||
{
|
||||
a.screws.Clear();
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 设置接线的螺丝参数
|
||||
/// </summary>
|
||||
public void SetLineScrew()
|
||||
{
|
||||
Debug.Log("接线重新关联螺丝");
|
||||
jieXian_screws.ForEach(a =>
|
||||
{
|
||||
a.screws = meteringDevice.jieXian_screws.FindAll(b => b.gameObject.name.StartsWith(a.gameObject.name));
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 刷新电能表螺丝带电状态
|
||||
/// </summary>
|
||||
private void CheckHasElectricity()
|
||||
{
|
||||
Debug.Log("带电状态刷新");
|
||||
//进线螺丝是否带电
|
||||
jieXian_screws.ForEach(a =>
|
||||
{
|
||||
if (!inSwitch.isOpen)
|
||||
{
|
||||
//开关关闭不带电
|
||||
a.screws.ForEach(b => b.hasElectricity = false);
|
||||
}
|
||||
else
|
||||
{
|
||||
//开关打开--线接上--螺丝拧上带电
|
||||
if (!a.isConnected)
|
||||
{
|
||||
a.screws.ForEach(b => b.hasElectricity = false);
|
||||
}
|
||||
else
|
||||
{
|
||||
a.screws.ForEach(b =>
|
||||
{
|
||||
//安装了则带电
|
||||
b.hasElectricity = b.isInstall;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
using Cysharp.Threading.Tasks.Triggers;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
@ -7,6 +8,8 @@ using UnityEngine;
|
|||
/// </summary>
|
||||
public class SiteManager : MonoBehaviour
|
||||
{
|
||||
|
||||
public static SiteManager instance;
|
||||
/// <summary>
|
||||
/// 机柜
|
||||
/// </summary>
|
||||
|
@ -15,23 +18,28 @@ public class SiteManager : MonoBehaviour
|
|||
/// 电能表碰撞
|
||||
/// </summary>
|
||||
public BoxCollider dianCollider;
|
||||
private void Awake()
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
//使能电能表碰撞
|
||||
if (measuringCabinet.meteringDevice.isRemove)
|
||||
if (measuringCabinet.meteringDevice == null)
|
||||
{
|
||||
dianCollider.enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!measuringCabinet.meteringDevice.fix_screw_left.isInstall && !measuringCabinet.meteringDevice.fix_screw_right.isInstall)
|
||||
//电能表固定螺丝拆掉了,线拆掉了
|
||||
if (!measuringCabinet.meteringDevice.fix_screw_left.isInstall && !measuringCabinet.meteringDevice.fix_screw_right.isInstall && measuringCabinet.jieXian_screws.TrueForAll(a=>!a.isConnected))
|
||||
{
|
||||
dianCollider.enabled = false;
|
||||
dianCollider.enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
dianCollider.enabled = true;
|
||||
dianCollider.enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,14 +49,23 @@ public class SiteManager : MonoBehaviour
|
|||
{
|
||||
if(hit.collider== dianCollider)
|
||||
{
|
||||
if (measuringCabinet.meteringDevice.isRemove)
|
||||
if (measuringCabinet.meteringDevice==null)
|
||||
{
|
||||
//²ðÏÂ
|
||||
measuringCabinet.meteringDevice.Remove();
|
||||
//安装电能表
|
||||
if(LiveSceneManager.Instance.currentTool!=null && LiveSceneManager.Instance.currentTool.GetComponent<Device_DirectAccessElectricEnergyMeteringDevice>()!=null)
|
||||
{
|
||||
measuringCabinet.meteringDevice = LiveSceneManager.Instance.currentTool.GetComponent<Device_DirectAccessElectricEnergyMeteringDevice>();
|
||||
measuringCabinet.meteringDevice.Add();
|
||||
//接线关联螺丝
|
||||
measuringCabinet.SetLineScrew();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//°²×°
|
||||
//拆下电能表
|
||||
measuringCabinet.meteringDevice.Remove();
|
||||
//情况接线关联螺丝
|
||||
measuringCabinet.ClearLineScrew();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,6 +23,12 @@ public class Tool_Line: Tool_Base
|
|||
/// </summary>
|
||||
public List<Tool_Screw> screws=new List<Tool_Screw>();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 安装状态时Y的local值
|
||||
/// </summary>
|
||||
public float InstallPosY;
|
||||
|
||||
protected override void OnAwake()
|
||||
{
|
||||
base.OnAwake();
|
||||
|
@ -36,8 +42,10 @@ public class Tool_Line: Tool_Base
|
|||
//取下接线
|
||||
if(screws.TrueForAll(a=>!a.isInstall))
|
||||
{
|
||||
isConnected = false;
|
||||
transform.DOLocalMoveY(transform.localPosition.y - 2, 1);
|
||||
transform.DOLocalMoveY(InstallPosY - 2, 1).OnComplete(()=>
|
||||
{
|
||||
isConnected = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -45,7 +53,7 @@ public class Tool_Line: Tool_Base
|
|||
//装上接线
|
||||
if (screws.TrueForAll(a => !a.isInstall))
|
||||
{
|
||||
transform.DOLocalMoveY(transform.localPosition.y + 2, 1).OnComplete(() =>
|
||||
transform.DOLocalMoveY(InstallPosY, 1).OnComplete(() =>
|
||||
{
|
||||
isConnected = true;
|
||||
});
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using DG.Tweening;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
@ -31,16 +32,16 @@ public class Tool_Screw : Tool_Base
|
|||
/// </summary>
|
||||
private bool isMoving;
|
||||
|
||||
|
||||
|
||||
///// <summary>
|
||||
///// 螺丝拧紧时的位置
|
||||
///// </summary>
|
||||
//private float localYInstallValue;
|
||||
///// <summary>
|
||||
///// 螺丝拧松时的位置
|
||||
///// </summary>
|
||||
//private float localYUnInstallValue;
|
||||
/// <summary>
|
||||
/// 安装状态时Y的local值
|
||||
/// </summary>
|
||||
public float initPostionY;
|
||||
|
||||
/// <summary>
|
||||
/// 螺丝拆装事件回调
|
||||
/// </summary>
|
||||
private Action<bool> installAction;
|
||||
|
||||
|
||||
protected override void OnAwake()
|
||||
|
@ -49,6 +50,10 @@ public class Tool_Screw : Tool_Base
|
|||
id = gameObject.name;
|
||||
}
|
||||
|
||||
public void AddAction(Action<bool> action)
|
||||
{
|
||||
this.installAction=action;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 被拧紧
|
||||
|
@ -64,7 +69,7 @@ public class Tool_Screw : Tool_Base
|
|||
screwdriver.transform.position = installPos.position;
|
||||
screwdriver.transform.localEulerAngles = installPos.localEulerAngles;
|
||||
//动画
|
||||
transform.DOLocalMoveY(transform.localPosition.y + 0.02f, 1)
|
||||
transform.DOLocalMoveY(initPostionY, 1)
|
||||
.OnUpdate(() =>
|
||||
{
|
||||
transform.RotateAroundLocal(Vector3.up, 1);
|
||||
|
@ -76,6 +81,7 @@ public class Tool_Screw : Tool_Base
|
|||
Debug.Log("螺丝已拧紧");
|
||||
isInstall = true;
|
||||
isMoving = false;
|
||||
installAction?.Invoke(true);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +100,7 @@ public class Tool_Screw : Tool_Base
|
|||
screwdriver.transform.position = installPos.position;
|
||||
screwdriver.transform.localEulerAngles = installPos.localEulerAngles;
|
||||
//动画
|
||||
transform.DOLocalMoveY(transform.localPosition.y - 0.02f, 1)
|
||||
transform.DOLocalMoveY(initPostionY - 0.02f, 1)
|
||||
.OnUpdate(() =>
|
||||
{
|
||||
transform.RotateAroundLocal(Vector3.up, 1);
|
||||
|
@ -106,6 +112,7 @@ public class Tool_Screw : Tool_Base
|
|||
Debug.Log("螺丝已拧松");
|
||||
isInstall = false;
|
||||
isMoving = false;
|
||||
installAction?.Invoke(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,13 +44,13 @@ public class Tool_Screwdriver : Tool_Base
|
|||
Tool_Screw ts = hit.transform.GetComponent<Tool_Screw>();
|
||||
if (ts != null)
|
||||
{
|
||||
if(ts.id== "电能表盖子固定螺丝1" && !Device_DirectAccessElectricEnergyMeteringDevice.instance.cover.cover_seal_Left.isCut)
|
||||
if(ts.id== "电能表盖子固定螺丝1" && !SiteManager.instance.measuringCabinet.meteringDevice.cover.cover_seal_Left.isCut)
|
||||
{
|
||||
Debug.Log("·âӡδ¼ô¶Ï");
|
||||
return;
|
||||
}
|
||||
|
||||
if (ts.id == "电能表盖子固定螺丝2" && !Device_DirectAccessElectricEnergyMeteringDevice.instance.cover.cover_seal_Right.isCut)
|
||||
if (ts.id == "电能表盖子固定螺丝2" && !SiteManager.instance.measuringCabinet.meteringDevice.cover.cover_seal_Right.isCut)
|
||||
{
|
||||
Debug.Log("·âӡδ¼ô¶Ï");
|
||||
return;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using static Unity.Burst.Intrinsics.X86.Avx;
|
||||
|
||||
/// <summary>
|
||||
/// 验电笔
|
||||
|
@ -42,7 +43,7 @@ public class Tool_TestPen : Tool_Base
|
|||
|
||||
if(isFlicker)
|
||||
{
|
||||
time += Time.deltaTime;
|
||||
time += Time.deltaTime*3;
|
||||
if (time < 1)
|
||||
{
|
||||
screem.materials[0].color = Color.red;
|
||||
|
@ -77,10 +78,12 @@ public class Tool_TestPen : Tool_Base
|
|||
var tmp = ((Device_CabinetDoor)device_base);
|
||||
//位置移动
|
||||
transform.position = tmp.testPosAndRot.position;
|
||||
transform.eulerAngles = tmp.testPosAndRot.eulerAngles;
|
||||
transform.localEulerAngles = tmp.testPosAndRot.localEulerAngles;
|
||||
Debug.Log("计量柜_柜门 已验电");
|
||||
isFlicker = tmp.hasElectricity;
|
||||
}
|
||||
|
||||
screem.materials[0].color = isFlicker ? Color.red : Color.white;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -94,10 +97,12 @@ public class Tool_TestPen : Tool_Base
|
|||
var tmp = ((Tool_Screw)tool_base);
|
||||
//位置移动
|
||||
transform.position = tmp.installPos.position;
|
||||
transform.eulerAngles = tmp.installPos.eulerAngles;
|
||||
transform.localEulerAngles = tmp.installPos.localEulerAngles;
|
||||
Debug.Log("螺丝 已验电");
|
||||
isFlicker = tmp.hasElectricity;
|
||||
}
|
||||
|
||||
screem.materials[0].color = isFlicker ? Color.red : Color.white;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -32,14 +32,14 @@ public class Tool_WireStripper : Tool_Base
|
|||
//´ò¿ª
|
||||
while (renderer.GetBlendShapeWeight(0) < 100)
|
||||
{
|
||||
vlaue += (Time.deltaTime * 100);
|
||||
vlaue += (Time.deltaTime * 200);
|
||||
renderer.SetBlendShapeWeight(0, vlaue);
|
||||
yield return null;
|
||||
}
|
||||
//¹Ø±Õ
|
||||
while (renderer.GetBlendShapeWeight(0) > 0)
|
||||
{
|
||||
vlaue -= (Time.deltaTime * 100);
|
||||
vlaue -= (Time.deltaTime * 200);
|
||||
renderer.SetBlendShapeWeight(0, vlaue);
|
||||
yield return null;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ public class LiveSceneManager : SingletonMono<LiveSceneManager>
|
|||
{
|
||||
[HideInInspector]
|
||||
public FirstPersonController firstPersonController;
|
||||
public GameObject currentTool;
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
|
|
Loading…
Reference in New Issue