添加红外方法

This commit is contained in:
高国正 2023-09-25 21:45:38 +08:00
parent 40698f63d4
commit 623048d0bc
50 changed files with 416 additions and 330020 deletions

Binary file not shown.

View File

@ -16,7 +16,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 1
--- !u!224 &785272239001180448
RectTransform:
@ -96,7 +96,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 0
--- !u!224 &6206996799658441976
RectTransform:
@ -233,7 +233,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 1
--- !u!224 &6206996799779127824
RectTransform:
@ -336,12 +336,12 @@ GameObject:
- component: {fileID: 6206996799886426826}
- component: {fileID: 6206996799886426825}
- component: {fileID: -677389066425627936}
m_Layer: 8
m_Layer: 5
m_Name: "\u6E29\u6E7F\u5EA6"
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 0
--- !u!4 &6206996799886426826
Transform:
@ -407,7 +407,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 0
--- !u!224 &6206996800221561050
RectTransform:
@ -518,7 +518,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 1
--- !u!224 &6206996800505932346
RectTransform:

View File

@ -1,5 +1,99 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1901191837
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1901191838}
- component: {fileID: 1901191840}
- component: {fileID: 1901191839}
- component: {fileID: 2401920438610439113}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 1
--- !u!224 &1901191838
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1901191837}
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: 6206996799779127824}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 23.987505, y: 12.360001}
m_SizeDelta: {x: -63.224987, y: -52.06}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1901191840
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1901191837}
m_CullTransparentMesh: 1
--- !u!114 &1901191839
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1901191837}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: 3a3b5242babc65a4c898f644975a9f50, type: 2}
m_Color: {r: 0.4862745, g: 0.8980392, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: f945cd23a57e99b46ac65684d5bb3be8, type: 3}
m_FontSize: 14
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u7EA2\u591602"
--- !u!114 &2401920438610439113
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1901191837}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 172de5a2084e00043b9839cbcb804818, type: 3}
m_Name:
m_EditorClassIdentifier:
text: {fileID: 0}
--- !u!1 &70541696378742185
GameObject:
m_ObjectHideFlags: 0
@ -16,7 +110,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 0
--- !u!224 &785272239001180448
RectTransform:
@ -96,8 +190,8 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_StaticEditorFlags: 2147483647
m_IsActive: 0
--- !u!224 &7909258536741902972
RectTransform:
m_ObjectHideFlags: 0
@ -146,10 +240,11 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u6444\u50CF01"
m_text: "\u7EA2\u591602"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: bc33625c39f9eef41a0dc90cc0dee2f2, type: 2}
m_sharedMaterial: {fileID: 5035289879998008610, guid: bc33625c39f9eef41a0dc90cc0dee2f2, type: 2}
m_sharedMaterial: {fileID: 5035289879998008610, guid: bc33625c39f9eef41a0dc90cc0dee2f2,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
@ -231,7 +326,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 0
--- !u!224 &6206996799658441976
RectTransform:
@ -366,7 +461,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 1
--- !u!224 &6206996799779127824
RectTransform:
@ -381,6 +476,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7909258536741902972}
- {fileID: 1901191838}
m_Father: {fileID: 6206996800505932346}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -409,7 +505,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Material: {fileID: 2100000, guid: 3a3b5242babc65a4c898f644975a9f50, type: 2}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
@ -438,12 +534,12 @@ GameObject:
- component: {fileID: 6206996799886426826}
- component: {fileID: 2773670996583366210}
- component: {fileID: 3608763260073886438}
m_Layer: 7
m_Layer: 5
m_Name: "\u7EA2\u5916\u7EBF"
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 0
--- !u!4 &6206996799886426826
Transform:
@ -473,6 +569,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 492085b682af94848929d4a7e9be24ad, type: 3}
m_Name:
m_EditorClassIdentifier:
maodian: {fileID: 6206996800505932346}
--- !u!114 &3608763260073886438
MonoBehaviour:
m_ObjectHideFlags: 0
@ -487,6 +584,8 @@ MonoBehaviour:
m_EditorClassIdentifier:
targetCamera: {fileID: 0}
distanceMultiplier: 0.05
button: {fileID: 0}
text: {fileID: 0}
--- !u!1 &6206996800221561051
GameObject:
m_ObjectHideFlags: 0
@ -503,7 +602,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 0
--- !u!224 &6206996800221561050
RectTransform:
@ -582,7 +681,7 @@ GameObject:
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 1
--- !u!224 &6206996800505932346
RectTransform:

View File

@ -4158,6 +4158,11 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 8571682767415418317}
- component: {fileID: 7742252148123957479}
- component: {fileID: 2211117576792026150}
- component: {fileID: 7083236633090769758}
- component: {fileID: 765448918725412949}
- component: {fileID: 7579292751409468113}
m_Layer: 8
m_Name: 4
m_TagString: Untagged
@ -4196,3 +4201,133 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &7742252148123957479
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9061080424600717175}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 11640fdcb68030044a769500d95e1506, type: 3}
m_Name:
m_EditorClassIdentifier:
deviceList:
id:
deviceName:
deviceCode:
type: 2
typeStr:
deviceType: 1
deviceTypeStr:
rackId:
shelfId:
slotId:
devicePosition:
machineModel:
status:
conDeviceName:
rackType:
openFlag:
backDoorFlag:
modelNum: 4
occupyNum: 7
residueNum:
operationTime:
directorName:
phone:
manufacturer:
powerProperties:
maintenanceUnit:
machineFrameHigh:
machineFrameWide:
machineFrameThick:
slotNum:
slotSort:
installMethod:
affiliationFrame:
parentSlotName:
slotType:
occupyStatus:
affiliationSlot:
portNum:
cardFunction:
cardType:
runStatus:
tmsId:
remark:
createTime:
createName:
--- !u!114 &2211117576792026150
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9061080424600717175}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1fd81313f40351c42bfdc5c8c418e56a, type: 3}
m_Name:
m_EditorClassIdentifier:
listTargets: []
frames: []
PerTier: 42
PerRow: 5
volume: 7
isExit: 0
isClicked: 0
isTarget: 0
isplace: 0
canPut: 0
--- !u!114 &7083236633090769758
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9061080424600717175}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6bdd6e5953a48524db661ab7d81d57d0, type: 3}
m_Name:
m_EditorClassIdentifier:
tmsAlarmLists: []
--- !u!114 &765448918725412949
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9061080424600717175}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 65c073f1f8dbbe64da03bf56cea22ae7, type: 3}
m_Name:
m_EditorClassIdentifier:
isTransparentGlow: 0
meshRenderers: []
materials: []
empty: []
TransparentGlow_Shader: {fileID: 4800000, guid: 132fbf2263a23854080e8a5c3cec824c,
type: 3}
TransparentGlow_Shader_half: {fileID: 0}
original_jigui: []
original_shebei: []
search_u_wei: 0
is_jigui: 0
--- !u!114 &7579292751409468113
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9061080424600717175}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6bc0a67b27552c54e893bf2db7023587, type: 3}
m_Name:
m_EditorClassIdentifier:
volume: 7
selfIcon: {fileID: 21300000, guid: 0dd1691fdb0c3734a9afa356ee99d263, type: 3}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 09a8e21b385b3d14ca7b6a7e26c2e63a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -4152,86 +4152,6 @@ MonoBehaviour:
ID: 0
instruct: {fileID: 127897126}
uPosManager: {fileID: 0}
--- !u!1 &31192090
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 31192091}
- component: {fileID: 31192093}
- component: {fileID: 31192092}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 1
--- !u!224 &31192091
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 31192090}
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: 492663315}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 23.987505, y: 12.360001}
m_SizeDelta: {x: -63.224987, y: -52.06}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &31192092
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 31192090}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: 3a3b5242babc65a4c898f644975a9f50, type: 2}
m_Color: {r: 0.4862745, g: 0.8980392, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: f945cd23a57e99b46ac65684d5bb3be8, type: 3}
m_FontSize: 14
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 3
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u7EA2\u591601"
--- !u!222 &31192093
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 31192090}
m_CullTransparentMesh: 1
--- !u!1 &31343000 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 1477468321687208425, guid: c8f09218a803c944e84c2336104ca2f9,
@ -55152,12 +55072,6 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!224 &492663315 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 6206996799779127824, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
m_PrefabInstance: {fileID: 509260154}
m_PrefabAsset: {fileID: 0}
--- !u!1 &493109602
GameObject:
m_ObjectHideFlags: 0
@ -57362,6 +57276,14 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 611096075}
m_Modifications:
- target: {fileID: 1901191838, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1901191839, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e, type: 3}
propertyPath: m_Text
value: "\u7EA2\u591601"
objectReference: {fileID: 0}
- target: {fileID: 70541696378742185, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_StaticEditorFlags
@ -112932,94 +112854,11 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 1675120013}
m_Modifications:
- target: {fileID: 70541696378742185, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: 2224874554742167492, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_text
value: "\u7EA2\u591602"
objectReference: {fileID: 0}
- target: {fileID: 2224874554742167492, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_fontAsset
value:
objectReference: {fileID: 11400000, guid: bc33625c39f9eef41a0dc90cc0dee2f2,
type: 2}
- target: {fileID: 2224874554742167492, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_hasFontAssetChanged
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2773670996583366210, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: maodian
value:
objectReference: {fileID: 985502303}
- target: {fileID: 3083355702494639820, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_FontData.m_Font
value:
objectReference: {fileID: 12800000, guid: f945cd23a57e99b46ac65684d5bb3be8,
type: 3}
- target: {fileID: 4568529563820045235, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4568529563820045235, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: 6206996799658441959, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_fontAsset
value:
objectReference: {fileID: 11400000, guid: bc33625c39f9eef41a0dc90cc0dee2f2,
type: 2}
- target: {fileID: 6206996799658441959, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_hasFontAssetChanged
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6206996799658441977, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: 6206996799779127825, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: 6206996799779127839, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_Material
value:
objectReference: {fileID: 2100000, guid: 3a3b5242babc65a4c898f644975a9f50, type: 2}
- target: {fileID: 6206996799886426826, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6206996799886426826, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6206996799886426826, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6206996799886426826, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6206996799886426826, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_LocalPosition.x
@ -113075,31 +112914,6 @@ PrefabInstance:
propertyPath: m_Name
value: "\u7EA2\u5916\u7EBF"
objectReference: {fileID: 0}
- target: {fileID: 6206996799886426827, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_Layer
value: 8
objectReference: {fileID: 0}
- target: {fileID: 6206996799886426827, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6206996799886426827, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: 6206996800221561051, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
- target: {fileID: 6206996800505932347, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
propertyPath: m_StaticEditorFlags
value: 2147483647
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e, type: 3}
--- !u!1 &968460685
@ -115336,12 +115150,6 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!224 &985502303 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 6206996800505932346, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
m_PrefabInstance: {fileID: 968018436}
m_PrefabAsset: {fileID: 0}
--- !u!1 &986005881
GameObject:
m_ObjectHideFlags: 0
@ -193967,12 +193775,6 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!224 &1692298009 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 6206996799779127824, guid: 0b6ba4cea5fa2c44e9a6d7121987f50e,
type: 3}
m_PrefabInstance: {fileID: 968018436}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1692663727 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 7376716081430803432, guid: c8f09218a803c944e84c2336104ca2f9,
@ -209667,7 +209469,7 @@ MonoBehaviour:
xllx_cx:
cdqx_cx:
arguments:
token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTU3MDYyMDgsInVzZXJuYW1lIjoiMTgzMTIzNDU2NzgifQ.-5WqqdWFQViDEN5vOTswrXaxkD1Be0daXEyA2n8_jKw
token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTU3MzE2NzcsInVzZXJuYW1lIjoiMTgzMTIzNDU2NzgifQ.qMjvqWTvAIeK2o_DhQX7d4HQSYk9NgsIb24M7CcElto
heatThresholdValueMax:
heatThresholdValueMin:
humidityThresholdValueMax:
@ -220221,86 +220023,6 @@ MonoBehaviour:
ID: 0
instruct: {fileID: 516549864}
uPosManager: {fileID: 0}
--- !u!1 &1901191837
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1901191838}
- component: {fileID: 1901191840}
- component: {fileID: 1901191839}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 1
--- !u!224 &1901191838
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1901191837}
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: 1692298009}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 23.987505, y: 12.360001}
m_SizeDelta: {x: -63.224987, y: -52.06}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1901191839
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1901191837}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: 3a3b5242babc65a4c898f644975a9f50, type: 2}
m_Color: {r: 0.4862745, g: 0.8980392, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: f945cd23a57e99b46ac65684d5bb3be8, type: 3}
m_FontSize: 14
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 3
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u7EA2\u591602"
--- !u!222 &1901191840
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1901191837}
m_CullTransparentMesh: 1
--- !u!1 &1901206185 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 2938814025658689419, guid: c8f09218a803c944e84c2336104ca2f9,

View File

@ -41,6 +41,7 @@ public class CabinetUIManager : MonoBehaviour
private void Start()
{
init();
}

View File

@ -54,6 +54,7 @@ public class UIToCabinet : MonoBehaviour
// Start is called before the first frame update
void Start()
{
enter_home.onClick.AddListener(() =>
{
mask_img.SetActive(false);
@ -511,6 +512,7 @@ public class UIToCabinet : MonoBehaviour
PatternChoose.Inst.xunJianImg.gameObject.SetActive(false);
WebInteraction.Inst.CloseVideo(WebInteraction.Inst.current_videoNumber);
WebInteraction.Inst.Patrolvideo_close();
WebInteraction.Inst.Infraredsensor_close();
GameManager.Inst.power_close();
GameManager.Inst.CloseHighlight();
@ -549,9 +551,12 @@ public class UIToCabinet : MonoBehaviour
yield return StartCoroutine(GameManager.Inst.init_ENV((x) =>
{
if (string.IsNullOrEmpty(x))
return;
GameManager.Inst.Load_ENV();
callback?.Invoke("1");
callback.Invoke(null);
else
{
GameManager.Inst.Load_ENV();
callback?.Invoke("1");
}
}));
}
else if (menu == Menu.M_È«¾°¼à¿Ø_É豸¸æ¾¯)
@ -559,9 +564,12 @@ public class UIToCabinet : MonoBehaviour
yield return StartCoroutine(GameManager.Inst.init_TmsAlarm((x) =>
{
if (string.IsNullOrEmpty(x))
return;
GameManager.Inst.Load_TmsAlarm();
callback?.Invoke("1");
callback.Invoke(null);
else
{
GameManager.Inst.Load_TmsAlarm();
callback?.Invoke("1");
}
}));
}
}

View File

@ -1 +1 @@
http://192.168.137.166:8081/
http://mayunbo.gnway.cc/

View File

@ -35,11 +35,11 @@ public class GameManager : MonoBehaviour
[Header("机柜区域集合")]
public List<Transform> Cabinet_quYu;
[Header("当前设备ID")] public string nowDeviceID;
[Header("当前点击设备")] public GameObject nowDevice;
[Header("当前设备ID")] public string nowDeviceID = null;
[Header("当前点击设备")] public GameObject nowDevice = null;
[Header("上一个设备ID")] public string lastDeviceID;
[Header("上一个点击设备")] public GameObject lastDevice;
[Header("上一个设备ID")] public string lastDeviceID = null;
[Header("上一个点击设备")] public GameObject lastDevice = null;
[Header("当前聚焦机柜")] public GameObject nowCabine;
@ -136,6 +136,7 @@ public class GameManager : MonoBehaviour
private void Awake()
{
if (Inst != this && Inst != null)
{
Destroy(this.gameObject);
@ -150,8 +151,9 @@ public class GameManager : MonoBehaviour
private void Start()
{
roomDoors = CabinetUIManager.Instance.transform.GetChild(0).GetComponentsInChildren<RoomDoor>(true).ToList();
Debug.Log("版本号 1.1.1");
roomDoors = CabinetUIManager.Instance.transform.GetChild(0).GetComponentsInChildren<RoomDoor>(true).ToList();
editorMenu.editorBtn.onClick.AddListener(() =>
{
if (Menu.M_数字孪生_场景管理 == CabinetUIManager.Instance.current_menu && nowDevice != null)
@ -245,6 +247,7 @@ public class GameManager : MonoBehaviour
// }
// editorMenu.gameObject.SetActive(false);
//});
//Debug.Log("版本号 1.1.1");
}
public void DeleteFunction()

View File

@ -35,6 +35,7 @@ public class SearchName1 : MonoBehaviour
private void Awake()
{
rectTransform = scrollView.GetComponent<RectTransform>();
initialHeight = rectTransform.sizeDelta.y;
rectTransform.sizeDelta = new Vector2(rectTransform.sizeDelta.x, 0);
@ -43,10 +44,12 @@ public class SearchName1 : MonoBehaviour
void Start()
{
//Debug.Log("版本号 1.1.1");
//scrollView.SetActive(false);
InputFieldEvent();
dragController.gameObject.SetActive(false);
OnClickSearchBtn();
//Debug.Log("版本号 1.1.1");
}
void InputFieldEvent()

View File

@ -15,10 +15,12 @@ public class AutoScaleUI : MonoBehaviour
//public static Transform Camera;
void Start()
{
//Debug.Log("版本号 1.1.1");
targetCamera = UnityEngine.Camera.main;
//Camera = UnityEngine.Camera.main.transform;
canvas = GetComponent<Canvas>();
initialScale = transform.localScale;
//Debug.Log("版本号 1.1.1");
}
void LateUpdate()

View File

@ -15,6 +15,7 @@ public class CableUI : MonoBehaviour
private void Awake()
{
gameObject.SetActive(false);
}

View File

@ -13,6 +13,7 @@ public class Highlight_XuanCheng : MonoBehaviour,IPointerEnterHandler,IPointerEx
private void Awake()
{
sprite_old = GetComponent<Image>().sprite;
}
public void OnPointerEnter(PointerEventData eventData)

View File

@ -64,6 +64,7 @@ public class PatternChoose : MonoBehaviour
private void Awake()
{
if (_inst != null && _inst != this)
{
Destroy(this.gameObject);
@ -78,6 +79,7 @@ public class PatternChoose : MonoBehaviour
}
void Start()
{
//Debug.Log("版本号 1.1.1");
roomCut.onValueChanged.AddListener((x) =>
{
if (CabinetUIManager.Instance.current_menu == Menu.M_数字孪生_智能巡检)
@ -98,6 +100,7 @@ public class PatternChoose : MonoBehaviour
return;
niaoKan_fuc();
});
//Debug.Log("版本号 1.1.1");
}
/// <summary>

View File

@ -16,8 +16,10 @@ public class ToggleController : MonoBehaviour
private void Start()
{
//Debug.Log("版本号 1.1.1");
toggle = GetComponent<Toggle>();
toggleWasOn = toggle.isOn; // ³õʼ»¯ toggleWasOn ±äÁ¿
//Debug.Log("版本号 1.1.1");
}
public void OnToggleClicked()

View File

@ -27,6 +27,7 @@ public class UI_Twinkle : MonoBehaviour, IPointerEnterHandler, IPointerExitHandl
private void Start()
{
//Debug.Log("版本号 1.1.1");
#region UI
button = GetComponent<Button>();
textMeshProUGUI = GetComponent<TextMeshProUGUI>();
@ -57,7 +58,7 @@ public class UI_Twinkle : MonoBehaviour, IPointerEnterHandler, IPointerExitHandl
normalSprite = dropdown.image.sprite;
}
#endregion
//Debug.Log("版本号 1.1.1");
}
public void OnPointerEnter(PointerEventData eventData)

View File

@ -72,18 +72,21 @@ public class WebInteraction : MonoBehaviour
private void Awake()
{
Inst = this;
//StartCoroutine(QiangZhi());
}
private void Start()
{
//Debug.Log("版本号 1.1.1");
bt.onClick.AddListener(() =>
{
//gameManager.token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTI2NDMyODksInVzZXJuYW1lIjoiMTgzMTIzNDU2NzgifQ.uMoC7I4SytLEgYTKHxyvOv7Lygeb9zDCmhLDYv1cJrA";
//gameManager.enabled = true;
unity_power_value(s);
});
//Debug.Log("版本号 1.1.1");
}
//前端调用Unity 方法逻辑
@ -206,7 +209,7 @@ public class WebInteraction : MonoBehaviour
Debug.Log("@@QX1");
#region
//加载权限
bool isgo = false;
//bool isgo = false;
try
{
Debug.Log("@@QX2");
@ -591,6 +594,24 @@ public class WebInteraction : MonoBehaviour
Application.ExternalCall("unity_patrolvideo_close", "巡检画面关");
}
/// <summary>
/// 打开红外
/// </summary>
/// <param name="num"></param>
public void Infraredsensor_open(string num)
{
Application.ExternalCall("web_infraredsensor_open", num);
}
/// <summary>
/// 关闭红外
/// </summary>
/// <param name="num"></param>
public void Infraredsensor_close()
{
Application.ExternalCall("web_infraredsensor_close", "红外画面关");
}
public void changC(GameObject hight, string index)
{
hight.SetActive(true);

View File

@ -14,7 +14,7 @@ using static GameManager;
/// </summary>
public class AddDevice : MonoBehaviour
{
public Root URlreturn;
public Root URlreturn = new Root();
public Body mybody = new Body();
public Button save_bt;
@ -52,6 +52,7 @@ public class AddDevice : MonoBehaviour
DeviceQuery.DeviceList device;
private void OnEnable()
{
//Debug.Log("版本号 1.1.1");
mybody = new Body();
GameManager.Inst.editorMenu.gameObject.SetActive(false);
init();
@ -91,6 +92,7 @@ public class AddDevice : MonoBehaviour
Debug.Log(e.StackTrace + "**********" + e.Message);
}
tbinfo();
//Debug.Log("版本号 1.1.1");
}
public void tbinfo()

View File

@ -16,7 +16,7 @@ using static GameManager;
/// </summary>
public class AddPort : MonoBehaviour
{
public Root URlreturn;
public Root URlreturn = new Root();
public Body mybody = new Body();
public Button save_bt;
public Image save_bt_img;
@ -77,6 +77,7 @@ public class AddPort : MonoBehaviour
public string conDevice_dic_id;
private void Awake()
{
save_bt_img = save_bt.GetComponent<Image>();
addconCabinet();
conCabinet.captionText.text = null;
@ -95,6 +96,7 @@ public class AddPort : MonoBehaviour
private void OnEnable()
{
//Debug.Log("版本号 1.1.1");
mybody = new Body();
conDevice_dic.Clear();
if (conCabinet.options.Count == 0)
@ -156,6 +158,7 @@ public class AddPort : MonoBehaviour
//}
tbinfo();
//Debug.Log("版本号 1.1.1");
}
public void tbinfo()
@ -239,6 +242,7 @@ public class AddPort : MonoBehaviour
private void Start()
{
//deviceId.onValueChanged.AddListener(deviceId_fuc);//所属设备
conDevice.onValueChanged.AddListener(conDevice_fuc);//对联设备
conCabinet.onValueChanged.AddListener(OnDropdownValueChanged_conCabinet);//对联机柜

View File

@ -10,8 +10,8 @@ using UnityEngine;
/// </summary>
public class DeletePort : MonoBehaviour
{
public Body mybody;
public Root URlreturn;
public Body mybody = new Body();
public Root URlreturn = new Root();
private IEnumerator SaveJsonCoroutine()
{

View File

@ -15,9 +15,9 @@ using static GameManager;
/// </summary>
public class RedactDevice : MonoBehaviour
{
public Body mybody;
public Root URlreturn;
DeviceQuery.DeviceList device;
public Body mybody = new Body();
public Root URlreturn = new Root();
DeviceQuery.DeviceList device = null;
/// <summary>
/// 类型
@ -46,6 +46,7 @@ public class RedactDevice : MonoBehaviour
//IMapper mapper;
public void OnEnable()
{
//Debug.Log("版本号 1.1.1");
mybody = new Body();
//config = new MapperConfiguration(cfg =>
//{
@ -145,6 +146,7 @@ public class RedactDevice : MonoBehaviour
modelNum.text = mybody.modelNum;
else
modelNum.text = null;
//Debug.Log("版本号 1.1.1");
}
private void Start()

View File

@ -20,11 +20,11 @@ using static GameManager;
public class RedactPort : MonoBehaviour
{
public Body mybody = new Body();
public Root URlreturn;
public Root URlreturn = new Root();
//public PortQuery.Root root;
public Button save_bt;
public Image save_bt_img;
PortQuery.PortList portlist;
PortQuery.PortList portlist = null;
/// <summary>
/// 端口
@ -84,6 +84,7 @@ public class RedactPort : MonoBehaviour
private void Awake()
{
save_bt_img = save_bt.GetComponent<Image>();
addconCabinet();
conCabinet.captionText.text = null;
@ -104,6 +105,7 @@ public class RedactPort : MonoBehaviour
//IMapper mapper;
private void OnEnable()
{
//Debug.Log("版本号 1.1.1");
mybody = new Body();
conDevice_dic.Clear();
//config = new MapperConfiguration(cfg =>
@ -215,6 +217,7 @@ public class RedactPort : MonoBehaviour
conDevice.captionText.text = mybody.cableGroupName;
conDevice.value = _conDevice;
}
//Debug.Log("版本号 1.1.1");
}
/// <summary>
@ -507,6 +510,7 @@ public class RedactPort : MonoBehaviour
private void Start()
{
save_bt.onClick.AddListener(() =>
{
GameManager.Inst.editorMenu.gameObject.SetActive(false);

View File

@ -12,10 +12,11 @@ using UnityEngine;
public class DeviceQuery : MonoBehaviour
{
public DeviceList deviceList;
public DeviceList deviceList = new DeviceList();
private void OnEnable()
{
//Debug.Log("版本号 1.1.1");
if (deviceList.type == "2" &&
deviceList.deviceType == "1" &&
string.IsNullOrEmpty(deviceList.rackId))
@ -24,7 +25,7 @@ public class DeviceQuery : MonoBehaviour
if (!ParentGo)
return;
deviceList.rackId = ParentGo.GetComponent<DeviceQuery>().deviceList.id;
if(!string.IsNullOrEmpty(deviceList.id))
if (!string.IsNullOrEmpty(deviceList.id))
gameObject.name = deviceList.id;
}
@ -43,7 +44,7 @@ public class DeviceQuery : MonoBehaviour
if (!string.IsNullOrEmpty(deviceList.id))
gameObject.name = deviceList.id;
}
//Debug.Log("版本号 1.1.1");
}
private void Awake()

View File

@ -9,10 +9,10 @@ using UnityEngine;
[AddComponentMenu("»·¾³²éѯ")]
public class ENVQuery : MonoBehaviour
{
public ENVList eNVList_W;//ζÈ
public ENVList eNVList_S;//ʪ¶È
public ENVList eNVList_Y;//Ñ̸Ð
public ENVList eNVList_J;//Ë®½þ
public ENVList eNVList_W = new ENVList();//ÎÂśČ
public ENVList eNVList_S = new ENVList();//ĘŞśČ
public ENVList eNVList_Y = new ENVList();//Ń̸Đ
public ENVList eNVList_J = new ENVList();//ËŽ˝ţ
private void Start()
{

View File

@ -25,6 +25,7 @@ public class LineQuery : MonoBehaviour
private void Awake()
{
if (Inst != this && Inst != null)
{
Destroy(this.gameObject);

View File

@ -15,16 +15,19 @@ public class PortQuery : MonoBehaviour
private void Awake()
{
hight = Instantiate(Resources.Load<GameObject>("端口高亮"), transform);
hight.SetActive(false);
}
private void OnEnable()
{
//Debug.Log("版本号 1.1.1");
if (!string.IsNullOrEmpty(portList.id))
{
gameObject.name = portList.id;
}
//Debug.Log("版本号 1.1.1");
}
private void Start()

View File

@ -12,7 +12,7 @@ using static ENVQuery;
[AddComponentMenu("¸æ¾¯²éѯ")]
public class TmsAlarmQuery : MonoBehaviour
{
public List<TmsAlarmList> tmsAlarmLists;
public List<TmsAlarmList> tmsAlarmLists = new List<TmsAlarmList>();
private void Start()
{

View File

@ -10,6 +10,7 @@ public class LocatingPlace : MonoBehaviour
private void Awake()
{
line = GetComponent<LineRenderer>();
line.positionCount = 0;
}

View File

@ -23,6 +23,7 @@ public class ClickEventLens : MonoBehaviour
public bool isplay = false;
private void Awake()
{
mycollider = gameObject.GetComponent<MeshCollider>();
clickEventLens = GameObject.FindObjectsOfType<ClickEventLens>().ToList();
lensUI_tranform = transform.GetChild(0);

View File

@ -17,6 +17,7 @@ public class LensUI : CabinetUIBase
private void Awake()
{
}
void Start()
{

View File

@ -80,6 +80,7 @@ public class ClickEvent : MonoBehaviour
// Start is called before the first frame update
void Start()
{
TransparentGlow_Shader = Resources.Load<Shader>("TransparentGlow");
}

View File

@ -47,6 +47,7 @@ public class HeatMapPoints : MonoBehaviour
private void Awake()
{
if (_inst != null && _inst != this)
{
Destroy(this.gameObject);

View File

@ -49,6 +49,7 @@ public class CreateLine : CabinetUIBase
private void Awake()
{
for (int i = 0; i < _vectors_tall.Count; i++)
vectors_tall.Add(_vectors_tall[i].position);

View File

@ -27,6 +27,7 @@ public class LineInfor : MonoBehaviour
private void Awake()
{
lineRenderer = GetComponent<LineRenderer>();
material = lineRenderer.materials[0];
material_clon = GameObject.Instantiate<Material>(Resources.Load<Material>("emission"));
@ -50,7 +51,9 @@ public class LineInfor : MonoBehaviour
private void Start()
{
//Debug.Log("版本号 1.1.1");
setcolor();
//Debug.Log("版本号 1.1.1");
}
private void Update()

View File

@ -26,12 +26,14 @@ public class LineRendererInteraction : MonoBehaviour
private void OnEnable()
{
//Debug.Log("版本号 1.1.1");
cableUI.port_A.text = this.port_A;
cableUI.port_A_cabinet.text = this.port_A_cabinet;
cableUI.port_A_deviceName.text = this.port_A_deviceName;
cableUI.port_B.text = this.port_B;
cableUI.port_B_cabinet.text = this.port_B_cabinet;
cableUI.port_B_deviceName.text = this.port_B_deviceName;
//Debug.Log("版本号 1.1.1");
}
private void Update()

View File

@ -68,6 +68,7 @@ public class ExtendedFlycam : MonoBehaviour
private void Awake()
{
_inst = this;
previousMousePosition = Input.mousePosition;
BoolMonitor.ValueChanged += BoolMonitor_ValueChanged;
@ -92,6 +93,7 @@ public class ExtendedFlycam : MonoBehaviour
private Quaternion lastRotation;
void Start()
{
//Debug.Log("版本号 1.1.1");
Cursor.visible = true;
//initialRotationEulerAngles = transform.localEulerAngles;
// 获取相机的Transform组件
@ -100,11 +102,14 @@ public class ExtendedFlycam : MonoBehaviour
// 初始化上一帧的位置和旋转
lastPosition = cameraTransform.position;
lastRotation = cameraTransform.rotation;
//Debug.Log("版本号 1.1.1");
}
private void OnEnable()
{
//Debug.Log("版本号 1.1.1");
transform.rotation = Quaternion.Euler(initialRotationEulerAngles);
//Debug.Log("版本号 1.1.1");
}

View File

@ -4,21 +4,26 @@ using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class Infraredsensor : MonoBehaviour
public class Infraredsensor : MonoBehaviour, IPointerDownHandler
{
public static Infraredsensor Inst;
public Menu current_menu;
//public static Infraredsensor Inst;
//public Menu current_menu;
public List<CabinetUIBase> cabinet_ui_base_list;
//public List<CabinetUIBase> cabinet_ui_base_list;
public Text text;
private void Awake()
{
Inst = this;
//Inst = this;
text = GetComponent<Text>();
}
void Start()
{
cabinet_ui_base_list = GetComponentsInChildren<CabinetUIBase>(true).ToList();
//cabinet_ui_base_list = GetComponentsInChildren<CabinetUIBase>(true).ToList();
}
// Update is called once per frame
@ -27,15 +32,22 @@ public class Infraredsensor : MonoBehaviour
}
public static void ChangeMenu(Menu menu)
public void OnPointerDown(PointerEventData eventData)
{
Inst.current_menu = menu;
foreach (var item in Inst.cabinet_ui_base_list)
{
item.OnMenuChanged(menu);
}
if (text)
WebInteraction.Inst.Infraredsensor_open(text.text.Replace("ºìÍâ", ""));
}
//public static void ChangeMenu(Menu menu)
//{
// Inst.current_menu = menu;
// foreach (var item in Inst.cabinet_ui_base_list)
// {
// item.OnMenuChanged(menu);
// }
//}
//public void op(Toggle t)
//{
// foreach (var item in Inst.cabinet_ui_base_list)

View File

@ -17,6 +17,7 @@ public class CabinetInfor : MonoBehaviour
private void Awake()
{
}
// Start is called before the first frame update
void Start()

View File

@ -37,10 +37,12 @@ public class DragTest : MonoBehaviour
bool finishPut;
private void Start()
{
//Debug.Log("版本号 1.1.1");
GetUList();
canPut = true;
anchorPos = transform.Find("êµã").gameObject;
//finishPut = gameObject.GetComponent<Device>().isPut;
//Debug.Log("版本号 1.1.1");
}
private void Update()
{

View File

@ -16,8 +16,10 @@ public class GetSerachPrefab : MonoBehaviour
public string path;
private void Start()
{
//Debug.Log("版本号 1.1.1");
GetPrefab();
needDragGoBtn=transform.parent.parent.parent.parent.Find("Image_拖拽设备框").GetChild(0).gameObject;
//Debug.Log("版本号 1.1.1");
}
public void GetPrefab()
{

View File

@ -28,7 +28,9 @@ public class OnChlickDrag1 : MonoBehaviour, IPointerDownHandler
void OnEnable()
{
//Debug.Log("版本号 1.1.1");
AddCollider(prefab.transform);
//Debug.Log("版本号 1.1.1");
}
private void Start()
{

View File

@ -70,6 +70,7 @@ public class BaseWallControlTwo : MonoBehaviour
}
void Start()
{
//Debug.Log("版本号 1.1.1");
colliders = GetComponents<Collider>().ToList();
for (int i = 0; i < Materials.Count; i++)
@ -79,7 +80,7 @@ public class BaseWallControlTwo : MonoBehaviour
MyTransparent.Add(Materials[i].name);
}
}
//Debug.Log("版本号 1.1.1");
}
/// <summary>

View File

@ -170,6 +170,7 @@ public class TransparentGlow : MonoBehaviour
public void Awake()
{
List<Material> mats = jigui_mats;
List<Material> mats1 = shebei_mats;
}
@ -177,12 +178,14 @@ public class TransparentGlow : MonoBehaviour
// Start is called before the first frame update
void Start()
{
//Debug.Log("版本号 1.1.1");
//for (int i = 0; i < Materials.Count; i++)
// break;
if (TransparentGlow_Shader == null)
TransparentGlow_Shader = Resources.Load<Shader>("TransparentGlow");
if (TransparentGlow_Shader_half == null)
TransparentGlow_Shader_half = Resources.Load<Shader>("TransparentGlow_half");
//Debug.Log("版本号 1.1.1");
}
// Update is called once per frame

View File

@ -47,6 +47,7 @@ public class TransparentGlowManage : MonoBehaviour
private void Awake()
{
if (_inst != null && _inst != this)
{
Destroy(this.gameObject);

View File

@ -32,6 +32,7 @@ public class Door : MonoBehaviour, IPointerClickHandler
// Start is called before the first frame update
void Start()
{
//Debug.Log("版本号 1.1.1");
TextMeshProUGUI = transform.GetChild(0).GetComponent<TextMeshProUGUI>();
Image = GetComponent<Image>();
cabinet = transform.parent.parent.parent.gameObject;
@ -44,6 +45,7 @@ public class Door : MonoBehaviour, IPointerClickHandler
{
TextMeshProUGUI.text = "¹ØÃÅ";
}
//Debug.Log("版本号 1.1.1");
}
// Update is called once per frame