This commit is contained in:
parent
901ceba0fa
commit
27e97e2e90
Binary file not shown.
|
After Width: | Height: | Size: 7.4 KiB |
|
|
@ -0,0 +1,123 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8d2611b9ceb0c404c833c73bb5908c36
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
|
|
@ -0,0 +1,123 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 58aade4af98a0eb46ae164d779076856
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1576,7 +1576,7 @@ BoxCollider:
|
|||
m_GameObject: {fileID: 430511055}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
m_Enabled: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 0.13970421, y: 0.18465248, z: 0.4527341}
|
||||
m_Center: {x: -0.003891021, y: 0.036754522, z: -0.000000052154064}
|
||||
|
|
@ -1587,11 +1587,24 @@ MonoBehaviour:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 430511055}
|
||||
m_Enabled: 1
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8e06567fd5d31714092892c5b6a4db0f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &430511071
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 430511055}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 80131c62f8dc2594ca5f70c603096d3f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
step: 8
|
||||
--- !u!1 &432049889 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 1430577957518126912, guid: 9d5faa837db5bd940bc4f9aee8b423d7, type: 3}
|
||||
|
|
@ -17868,8 +17881,8 @@ BoxCollider:
|
|||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 0.13970421, y: 0.18465248, z: 0.4527341}
|
||||
m_Center: {x: -0.003891021, y: 0.036754522, z: -0.000000052154064}
|
||||
m_Size: {x: 0.4029258, y: 0.18465248, z: 0.4527341}
|
||||
m_Center: {x: 0.12771979, y: 0.03675452, z: -0.00000005960464}
|
||||
--- !u!114 &1383762166
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -17882,6 +17895,19 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8e06567fd5d31714092892c5b6a4db0f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &1383762170
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1383762154}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 80131c62f8dc2594ca5f70c603096d3f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
step: 7
|
||||
--- !u!1 &1389000718 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: -836471889339004535, guid: 3ccabd58da5b20c44b8ce9d3477a1c41, type: 3}
|
||||
|
|
@ -19179,7 +19205,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 80131c62f8dc2594ca5f70c603096d3f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
step: 2
|
||||
step: 6
|
||||
--- !u!1 &1652472845
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -19719,7 +19745,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 80131c62f8dc2594ca5f70c603096d3f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
step: 2
|
||||
step: 5
|
||||
--- !u!1 &1739010014 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: -781152103824681085, guid: 9d5faa837db5bd940bc4f9aee8b423d7, type: 3}
|
||||
|
|
@ -20883,7 +20909,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2833892415248803418, guid: 07c4ae719ffee874291556c4300acc59, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "\u4E2D\u592E\u7A7A\u8C03\u4E3B\u673A1"
|
||||
value: "\u4E2D\u592E\u7A7A\u8C03\u4E3B\u673A"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2833892415248803418, guid: 07c4ae719ffee874291556c4300acc59, type: 3}
|
||||
propertyPath: m_Layer
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -7,10 +7,12 @@ using TMPro;
|
|||
|
||||
public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
||||
{
|
||||
public static EquipmentIIntroduction_TSQ instance;
|
||||
public TaskStep taskStep;
|
||||
public int step = 0;
|
||||
void Awake()
|
||||
{
|
||||
instance =this;
|
||||
taskStep = new TaskStep
|
||||
{
|
||||
StepId = step,
|
||||
|
|
@ -27,10 +29,10 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
|||
switch (gameObject.name)
|
||||
{
|
||||
case "冷却塔风机1":
|
||||
LQTFJPanel();
|
||||
LQTFJ1Panel();
|
||||
break;
|
||||
case "冷却塔风机2":
|
||||
LQTFJPanel();
|
||||
LQTFJ2Panel();
|
||||
break;
|
||||
case "冷却泵1":
|
||||
LQB1Panel();
|
||||
|
|
@ -39,10 +41,13 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
|||
LQB2Panel();
|
||||
break;
|
||||
case "风机盘管1":
|
||||
FJPGPanel();
|
||||
FJPG1Panel();
|
||||
break;
|
||||
case "风机盘管2":
|
||||
FJPGPanel();
|
||||
FJPG2Panel();
|
||||
break;
|
||||
case "中央空调主机":
|
||||
ZYKTZJPanel();
|
||||
break;
|
||||
default:
|
||||
Debug.Log("未知物体");
|
||||
|
|
@ -51,15 +56,51 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 开启冷却塔风机面板
|
||||
/// 开启冷却塔风机1面板
|
||||
/// </summary>
|
||||
private void LQTFJPanel()
|
||||
private void LQTFJ1Panel()
|
||||
{
|
||||
if (UIView.Get<EquipmentSimulationView>().IsActiveSelf())
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>("参数面板-冷却塔风机").Activate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Text>("开启冷却塔风机Text1").text = "开启冷却塔风机1";
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>("参数面板-冷却塔风机1").Activate();
|
||||
if (UIView.Get<EquipmentSimulationView>().Stepbools[0]==true)
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-冷却塔风机1").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-冷却塔风机1").Activate();
|
||||
}
|
||||
else
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-冷却塔风机1").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-冷却塔风机1").Activate();
|
||||
}
|
||||
|
||||
}
|
||||
StartCoroutine(AutoHide(4,"参数面板-冷却塔风机"));
|
||||
//StartCoroutine(AutoHide(4,"参数面板-冷却塔风机1"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 冷却塔风机2
|
||||
/// </summary>
|
||||
private void LQTFJ2Panel()
|
||||
{
|
||||
if (UIView.Get<EquipmentSimulationView>().IsActiveSelf())
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Text>("开启冷却塔风机Text2").text = "开启冷却塔风机2";
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>("参数面板-冷却塔风机2").Activate();
|
||||
if (UIView.Get<EquipmentSimulationView>().Stepbools[1]==true)
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-冷却塔风机2").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-冷却塔风机2").Activate();
|
||||
}
|
||||
else
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-冷却塔风机2").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-冷却塔风机2").Activate();
|
||||
}
|
||||
|
||||
}
|
||||
//StartCoroutine(AutoHide(4,"参数面板-冷却塔风机2"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -69,9 +110,20 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
|||
{
|
||||
if (UIView.Get<EquipmentSimulationView>().IsActiveSelf())
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Text>("启动冷却水循环泵1Text").text = "启动冷却水循环泵";
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>("参数面板-冷却泵1").Activate();
|
||||
if (UIView.Get<EquipmentSimulationView>().Stepbools[2]==true)
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-冷却泵1").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-冷却泵1").Activate();
|
||||
}
|
||||
else
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-冷却泵1").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-冷却泵1").Activate();
|
||||
}
|
||||
}
|
||||
StartCoroutine(AutoHide(4,"参数面板-冷却泵1"));
|
||||
//StartCoroutine(AutoHide(4,"参数面板-冷却泵1"));
|
||||
}
|
||||
/// <summary>
|
||||
/// 开启冷却泵2面板
|
||||
|
|
@ -80,29 +132,95 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
|||
{
|
||||
if (UIView.Get<EquipmentSimulationView>().IsActiveSelf())
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Text>("启动冷却水循环泵2Text").text = "启动冷却水循环泵";
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>("参数面板-冷却泵2").Activate();
|
||||
if (UIView.Get<EquipmentSimulationView>().Stepbools[3]==true)
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-冷却泵2").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-冷却泵2").Activate();
|
||||
}
|
||||
else
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-冷却泵2").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-冷却泵2").Activate();
|
||||
}
|
||||
}
|
||||
StartCoroutine(AutoHide(4,"参数面板-冷却泵2"));
|
||||
//StartCoroutine(AutoHide(4,"参数面板-冷却泵2"));
|
||||
}
|
||||
/// <summary>
|
||||
/// 开启风机盘管面板
|
||||
/// 开启风机盘管1面板
|
||||
/// </summary>
|
||||
private void FJPGPanel()
|
||||
private void FJPG1Panel()
|
||||
{
|
||||
if (UIView.Get<EquipmentSimulationView>().IsActiveSelf())
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>("参数面板-风机盘管").Activate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Text>("启动风机盘管Text1").text = "启动风机盘管1";
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>("参数面板-风机盘管1").Activate();
|
||||
if (UIView.Get<EquipmentSimulationView>().Stepbools[4]==true)
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-风机盘管1").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-风机盘管1").Activate();
|
||||
}
|
||||
else
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-风机盘管1").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-风机盘管1").Activate();
|
||||
}
|
||||
}
|
||||
StartCoroutine(AutoHide(4,"参数面板-风机盘管"));
|
||||
//StartCoroutine(AutoHide(4,"参数面板-风机盘管"));
|
||||
}
|
||||
/// <summary>
|
||||
/// 开启风机盘管2面板
|
||||
/// </summary>
|
||||
private void FJPG2Panel()
|
||||
{
|
||||
if (UIView.Get<EquipmentSimulationView>().IsActiveSelf())
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Text>("启动风机盘管Text2").text = "启动风机盘管2";
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>("参数面板-风机盘管2").Activate();
|
||||
if (UIView.Get<EquipmentSimulationView>().Stepbools[5]==true)
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-风机盘管2").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-风机盘管2").Activate();
|
||||
}
|
||||
else
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-风机盘管2").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-风机盘管2").Activate();
|
||||
}
|
||||
}
|
||||
//StartCoroutine(AutoHide(4,"参数面板-风机盘管"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 开启中央空调主机面板
|
||||
/// </summary>
|
||||
private void ZYKTZJPanel()
|
||||
{
|
||||
if (UIView.Get<EquipmentSimulationView>().IsActiveSelf())
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Text>("中央空调主机Text").text = "启动中央空调主机";
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>("参数面板-中央空调主机").Activate();
|
||||
if (UIView.Get<EquipmentSimulationView>().Stepbools[6]==true)
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-中央空调主机").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-中央空调主机").Activate();
|
||||
}
|
||||
else
|
||||
{
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("停止运行-中央空调主机").Deactivate();
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<Button>("启动运行-中央空调主机").Activate();
|
||||
}
|
||||
}
|
||||
//StartCoroutine(AutoHide(4,"参数面板-中央空调主机"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 自动隐藏运行成功信息协程,延迟一段时间后关闭框。
|
||||
/// </summary>
|
||||
/// <param name="durationTime"></param>
|
||||
/// <returns></returns>
|
||||
private IEnumerator AutoHide(float durationTime,string PanelText)
|
||||
public IEnumerator AutoHide(float durationTime,string PanelText)
|
||||
{
|
||||
yield return new WaitForSeconds(durationTime);
|
||||
UIView.Get<EquipmentSimulationView>().variables.Get<RectTransform>(PanelText).gameObject.Deactivate();
|
||||
|
|
|
|||
|
|
@ -58,6 +58,14 @@ public class EquipmentSimulationView : UIView
|
|||
private float typingSpeed = 0.05f;
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 设备开启面板
|
||||
/// </summary>
|
||||
public List<RectTransform> AllPanel;
|
||||
/// <summary>
|
||||
/// 判断当前状态是打开还是关闭
|
||||
/// </summary>
|
||||
public List<bool> Stepbools;
|
||||
protected override void OnInit(IViewData data)
|
||||
{
|
||||
base.OnInit(data);
|
||||
|
|
@ -414,15 +422,26 @@ public class EquipmentSimulationView : UIView
|
|||
Unload();
|
||||
Load<TypicalEnergyHomeView>();
|
||||
});
|
||||
variables.Get<Button>("启动运行-冷却塔风机").onClick.AddListener(delegate
|
||||
variables.Get<Button>("启动运行-冷却塔风机1").onClick.AddListener(delegate
|
||||
{
|
||||
SBStartOperation("开启冷却塔风机成功");
|
||||
Stepbools[0] = true;
|
||||
SBStartOperation("开启冷却塔风机1成功");
|
||||
StartCoroutine(EquipmentIIntroduction_TSQ.instance.AutoHide(4,"参数面板-冷却塔风机1"));
|
||||
});
|
||||
variables.Get<Button>("启动运行-冷却塔风机2").onClick.AddListener(delegate
|
||||
{
|
||||
Stepbools[1] = true;
|
||||
SBStartOperation("开启冷却塔风机2成功");
|
||||
StartCoroutine(EquipmentIIntroduction_TSQ.instance.AutoHide(4,"参数面板-冷却塔风机2"));
|
||||
});
|
||||
|
||||
variables.Get<Button>("启动运行-冷却泵1").onClick.AddListener(delegate
|
||||
{
|
||||
if (variables.Get<Toggle>("水流开关1").isOn == true)
|
||||
{
|
||||
Stepbools[2] = true;
|
||||
SBStartOperation("启动运行-冷却泵成功");
|
||||
StartCoroutine(EquipmentIIntroduction_TSQ.instance.AutoHide(4,"参数面板-冷却泵1"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -434,18 +453,35 @@ public class EquipmentSimulationView : UIView
|
|||
{
|
||||
if (variables.Get<Toggle>("水流开关2").isOn == true)
|
||||
{
|
||||
Stepbools[3] = true;
|
||||
SBStartOperation("启动运行-冷却泵成功");
|
||||
StartCoroutine(EquipmentIIntroduction_TSQ.instance.AutoHide(4,"参数面板-冷却泵2"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowWarming("启动水泵前请打开水流开关");
|
||||
}
|
||||
});
|
||||
variables.Get<Button>("启动运行-风机盘管").onClick.AddListener(delegate
|
||||
variables.Get<Button>("启动运行-风机盘管1").onClick.AddListener(delegate
|
||||
{
|
||||
if (variables.Get<Toggle>("水流开关1").isOn == true&&variables.Get<Toggle>("水流开关2").isOn == true)
|
||||
{
|
||||
Stepbools[4] = true;
|
||||
SBStartOperation("启动风机盘管成功");
|
||||
StartCoroutine(EquipmentIIntroduction_TSQ.instance.AutoHide(4,"参数面板-风机盘管1"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowWarming("启动风机盘管前请打开冷冻泵");
|
||||
}
|
||||
});
|
||||
variables.Get<Button>("启动运行-风机盘管2").onClick.AddListener(delegate
|
||||
{
|
||||
if (variables.Get<Toggle>("水流开关1").isOn == true&&variables.Get<Toggle>("水流开关2").isOn == true)
|
||||
{
|
||||
Stepbools[5] = true;
|
||||
SBStartOperation("启动风机盘管成功");
|
||||
StartCoroutine(EquipmentIIntroduction_TSQ.instance.AutoHide(4,"参数面板-风机盘管2"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -453,6 +489,12 @@ public class EquipmentSimulationView : UIView
|
|||
}
|
||||
});
|
||||
|
||||
variables.Get<Button>("启动运行-中央空调主机").onClick.AddListener(delegate
|
||||
{
|
||||
Stepbools[6] = true;
|
||||
SBStartOperation("开启中央空调主机成功");
|
||||
StartCoroutine(EquipmentIIntroduction_TSQ.instance.AutoHide(4,"参数面板-中央空调主机"));
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue