[정영민] Meun 오류 수정
This commit is contained in:
@@ -45,8 +45,10 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
isInit: 0
|
||||
sensorManager: {fileID: 0}
|
||||
facilityManager: {fileID: 0}
|
||||
sensorManager:
|
||||
sensors: []
|
||||
facilityManager:
|
||||
facilities: []
|
||||
sensorStatusInfo:
|
||||
record: []
|
||||
test: []
|
||||
@@ -142,52 +144,6 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::KEPCO.Managements.KEPCOUIManager
|
||||
isInit: 0
|
||||
--- !u!1 &4592489520737340430
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3161761924803472743}
|
||||
- component: {fileID: 7600145810722497989}
|
||||
m_Layer: 0
|
||||
m_Name: SensorManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &3161761924803472743
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4592489520737340430}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 18.66294, y: 2.741146, z: 10.372288}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3270572425374025785}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &7600145810722497989
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4592489520737340430}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b2fde588a73cca44ab1528b10a602975, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::KEPCO.Managements.SensorManager
|
||||
isInit: 0
|
||||
sensors: []
|
||||
--- !u!1 &5850141579646257595
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -218,8 +174,6 @@ Transform:
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 7043085184429501903}
|
||||
- {fileID: 3161761924803472743}
|
||||
- {fileID: 6725108649100284749}
|
||||
- {fileID: 1330821275130390870}
|
||||
- {fileID: 5065654617728729391}
|
||||
@@ -240,6 +194,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::KEPCO.KEPCOSceneMain
|
||||
building: {fileID: 0}
|
||||
stage: {fileID: 0}
|
||||
--- !u!1 &6039350955345682887
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -355,49 +310,3 @@ MonoBehaviour:
|
||||
originScale: {x: 1, y: 1, z: 1}
|
||||
color: {r: 0, g: 0, b: 0, a: 0}
|
||||
mesh: {fileID: 0}
|
||||
--- !u!1 &8091420313870416727
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7043085184429501903}
|
||||
- component: {fileID: 8046321718137041625}
|
||||
m_Layer: 0
|
||||
m_Name: FacilityManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &7043085184429501903
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8091420313870416727}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 18.66294, y: 2.741146, z: 10.372288}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3270572425374025785}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &8046321718137041625
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8091420313870416727}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: dd5094f79a6482e4d9d8844cb178c5cd, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::KEPCO.Managements.FacilityManager
|
||||
isInit: 0
|
||||
facilities: []
|
||||
|
||||
8
Assets/Scenes/KEPCO.meta
Normal file
8
Assets/Scenes/KEPCO.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 053dc5dbc416b09439820c9cae31396e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scenes/KEPCOScene.meta
Normal file
8
Assets/Scenes/KEPCOScene.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0a91c05418f18964b8c644bba6c0c33a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -10716,55 +10716,6 @@ PrefabInstance:
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 423036aa0a8d7e54896acc2d79cf08b5, type: 3}
|
||||
--- !u!1 &206414007
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 206414010}
|
||||
- component: {fileID: 206414008}
|
||||
m_Layer: 0
|
||||
m_Name: Demo Volume
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &206414008
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 206414007}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 172515602e62fb746b5d573b38a5fe58, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IsGlobal: 1
|
||||
priority: 0
|
||||
blendDistance: 1
|
||||
weight: 1
|
||||
sharedProfile: {fileID: 11400000, guid: 10fc4df2da32a41aaa32d77bc913491c, type: 2}
|
||||
--- !u!4 &206414010
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 206414007}
|
||||
serializedVersion: 2
|
||||
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: 728459737}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &557406313
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -10844,7 +10795,7 @@ Light:
|
||||
m_InnerSpotAngle: 21.80208
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 2
|
||||
m_Type: 0
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 0.6
|
||||
@@ -10892,7 +10843,7 @@ Light:
|
||||
m_LightUnit: 1
|
||||
m_LuxAtDistance: 1
|
||||
m_EnableSpotReflector: 1
|
||||
--- !u!1 &728459736
|
||||
--- !u!1 &1585589209
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -10900,30 +10851,125 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 728459737}
|
||||
- component: {fileID: 1585589210}
|
||||
- component: {fileID: 1585589212}
|
||||
- component: {fileID: 1585589211}
|
||||
m_Layer: 0
|
||||
m_Name: Volumes
|
||||
m_Name: Main Light (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &728459737
|
||||
--- !u!4 &1585589210
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 728459736}
|
||||
m_GameObject: {fileID: 1585589209}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalRotation: {x: 0.48618498, y: -0.20216961, z: 0.11672268, w: 0.8420971}
|
||||
m_LocalPosition: {x: 0, y: 100, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 206414010}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1741781312}
|
||||
m_LocalEulerAnglesHint: {x: 60, y: -27, z: 0}
|
||||
--- !u!114 &1585589211
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1585589209}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_UsePipelineSettings: 1
|
||||
m_AdditionalLightsShadowResolutionTier: 2
|
||||
m_CustomShadowLayers: 0
|
||||
m_LightCookieSize: {x: 1, y: 1}
|
||||
m_LightCookieOffset: {x: 0, y: 0}
|
||||
m_SoftShadowQuality: 3
|
||||
m_RenderingLayersMask:
|
||||
serializedVersion: 0
|
||||
m_Bits: 1
|
||||
m_ShadowRenderingLayersMask:
|
||||
serializedVersion: 0
|
||||
m_Bits: 1
|
||||
m_Version: 4
|
||||
m_LightLayerMask: 1
|
||||
m_ShadowLayerMask: 1
|
||||
m_RenderingLayers: 1
|
||||
m_ShadowRenderingLayers: 1
|
||||
--- !u!108 &1585589212
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1585589209}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 11
|
||||
m_Type: 1
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Intensity: 3
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_InnerSpotAngle: 21.80208
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 0
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 0.6
|
||||
m_Bias: 0
|
||||
m_NormalBias: 2.16
|
||||
m_NearPlane: 0.1
|
||||
m_CullingMatrixOverride:
|
||||
e00: 1
|
||||
e01: 0
|
||||
e02: 0
|
||||
e03: 0
|
||||
e10: 0
|
||||
e11: 1
|
||||
e12: 0
|
||||
e13: 0
|
||||
e20: 0
|
||||
e21: 0
|
||||
e22: 1
|
||||
e23: 0
|
||||
e30: 0
|
||||
e31: 0
|
||||
e32: 0
|
||||
e33: 1
|
||||
m_UseCullingMatrixOverride: 0
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingLayerMask: 1
|
||||
m_Lightmapping: 1
|
||||
m_LightShadowCasterMode: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 4
|
||||
m_ColorTemperature: 8000
|
||||
m_UseColorTemperature: 1
|
||||
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_UseBoundingSphereOverride: 0
|
||||
m_UseViewFrustumForShadowCasterCull: 1
|
||||
m_ForceVisible: 0
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
m_LightUnit: 1
|
||||
m_LuxAtDistance: 1
|
||||
m_EnableSpotReflector: 1
|
||||
--- !u!1 &1741781311
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -10954,6 +11000,7 @@ Transform:
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 557406314}
|
||||
- {fileID: 1585589210}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
@@ -10962,4 +11009,3 @@ SceneRoots:
|
||||
m_Roots:
|
||||
- {fileID: 49214047}
|
||||
- {fileID: 1741781312}
|
||||
- {fileID: 728459737}
|
||||
|
||||
127
Assets/Scenes/KEPCOScene/KEPCOVolume.asset
Normal file
127
Assets/Scenes/KEPCOScene/KEPCOVolume.asset
Normal file
@@ -0,0 +1,127 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
|
||||
m_Name: KEPCOVolume
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Core.Runtime::UnityEngine.Rendering.VolumeProfile
|
||||
components:
|
||||
- {fileID: 2709602070013866162}
|
||||
- {fileID: 1219246035720888057}
|
||||
- {fileID: 3637616320378756996}
|
||||
--- !u!114 &1219246035720888057
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0b2db86121404754db890f4c8dfe81b2, type: 3}
|
||||
m_Name: Bloom
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.Bloom
|
||||
active: 1
|
||||
skipIterations:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
threshold:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.98
|
||||
intensity:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.43
|
||||
scatter:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.45
|
||||
clamp:
|
||||
m_OverrideState: 1
|
||||
m_Value: 65472
|
||||
tint:
|
||||
m_OverrideState: 1
|
||||
m_Value: {r: 1, g: 1, b: 1, a: 1}
|
||||
highQualityFiltering:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
downscale:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
maxIterations:
|
||||
m_OverrideState: 1
|
||||
m_Value: 4
|
||||
dirtTexture:
|
||||
m_OverrideState: 0
|
||||
m_Value: {fileID: 0}
|
||||
dimension: 1
|
||||
dirtIntensity:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
--- !u!114 &2709602070013866162
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 97c23e3b12dc18c42a140437e53d3951, type: 3}
|
||||
m_Name: Tonemapping
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.Tonemapping
|
||||
active: 1
|
||||
mode:
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
neutralHDRRangeReductionMode:
|
||||
m_OverrideState: 0
|
||||
m_Value: 2
|
||||
acesPreset:
|
||||
m_OverrideState: 0
|
||||
m_Value: 3
|
||||
hueShiftAmount:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
detectPaperWhite:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
paperWhite:
|
||||
m_OverrideState: 0
|
||||
m_Value: 300
|
||||
detectBrightnessLimits:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
minNits:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.005
|
||||
maxNits:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1000
|
||||
--- !u!114 &3637616320378756996
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 70afe9e12c7a7ed47911bb608a23a8ff, type: 3}
|
||||
m_Name: SplitToning
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.SplitToning
|
||||
active: 1
|
||||
shadows:
|
||||
m_OverrideState: 1
|
||||
m_Value: {r: 0.29411766, g: 0.29411766, b: 0.29411766, a: 1}
|
||||
highlights:
|
||||
m_OverrideState: 1
|
||||
m_Value: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
balance:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
8
Assets/Scenes/KEPCOScene/KEPCOVolume.asset.meta
Normal file
8
Assets/Scenes/KEPCOScene/KEPCOVolume.asset.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b88f584d02e80704dbb909e5ca9daccb
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -17,10 +17,13 @@ namespace ChunilENG.UI.Command
|
||||
|
||||
public void Execute(object? parameter = null)
|
||||
{
|
||||
propertyWindow.Hide();
|
||||
|
||||
var uiManager = ChunilENGSceneMain.Instance.GetManager<ChunilENGUIManager>();
|
||||
uiManager.GetCanvas<PopupCanvas>().OpenPanel<AlarmHistoryPanel>(CanvasPanelOpenMode.Single);
|
||||
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<BottomLeftToolbar>().HideItem();
|
||||
|
||||
var topmenuPanel = uiManager.GetCanvas<StaticCanvas>().GetPanel<TopMenuPanel>();
|
||||
topmenuPanel.PropertyWindow.Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,19 +7,16 @@ namespace ChunilENG.UI.Command
|
||||
{
|
||||
public class OpenAssemblyProgressPanelCommand : ICommand
|
||||
{
|
||||
private PropertyWindow propertyWindow;
|
||||
|
||||
public OpenAssemblyProgressPanelCommand(PropertyWindow propertyWindow)
|
||||
{
|
||||
this.propertyWindow = propertyWindow;
|
||||
}
|
||||
|
||||
public void Execute(object? parameter = null)
|
||||
{
|
||||
var uiManager = ChunilENGSceneMain.Instance.GetManager<ChunilENGUIManager>();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveCurrentSideTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().SideTabBar.DeactivateCurrentTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveSideToolButton();
|
||||
propertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<BottomLeftToolbar>().HideItem();
|
||||
|
||||
var topmenuPanel = uiManager.GetCanvas<StaticCanvas>().GetPanel<TopMenuPanel>();
|
||||
topmenuPanel.PropertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<PopupCanvas>().OpenPanel<AssemblyProgressPanel>(CanvasPanelOpenMode.Single);
|
||||
}
|
||||
|
||||
@@ -8,19 +8,16 @@ namespace ChunilENG.UI.Command
|
||||
{
|
||||
public class OpenFinalInspectionPanelCommand : ICommand
|
||||
{
|
||||
private PropertyWindow propertyWindow;
|
||||
|
||||
public OpenFinalInspectionPanelCommand(PropertyWindow propertyWindow)
|
||||
{
|
||||
this.propertyWindow = propertyWindow;
|
||||
}
|
||||
|
||||
public void Execute(object? parameter = null)
|
||||
{
|
||||
var uiManager = ChunilENGSceneMain.Instance.GetManager<ChunilENGUIManager>();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveCurrentSideTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().SideTabBar.DeactivateCurrentTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveSideToolButton();
|
||||
propertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<BottomLeftToolbar>().HideItem();
|
||||
|
||||
var topmenuPanel = uiManager.GetCanvas<StaticCanvas>().GetPanel<TopMenuPanel>();
|
||||
topmenuPanel.PropertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<PopupCanvas>().OpenPanel<FinalInspectionPanel>(CanvasPanelOpenMode.Single);
|
||||
}
|
||||
|
||||
@@ -21,6 +21,15 @@ namespace ChunilENG.UI.Command
|
||||
|
||||
var uiManager = ChunilENGSceneMain.Instance.GetManager<ChunilENGUIManager>();
|
||||
uiManager.GetCanvas<PopupCanvas>().ClosePanel();
|
||||
|
||||
var leftSidePanel = uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>();
|
||||
var topmenuPanel = uiManager.GetCanvas<StaticCanvas>().GetPanel<TopMenuPanel>();
|
||||
|
||||
leftSidePanel.DeactiveSideToolButton();
|
||||
leftSidePanel.SideTabBar.DeactivateCurrentTab();
|
||||
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<BottomLeftToolbar>().HideItem();
|
||||
topmenuPanel.PropertyWindow.Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,23 +8,24 @@ namespace ChunilENG.UI.Command
|
||||
{
|
||||
public class OpenMachineDashBoardCommand : ICommand
|
||||
{
|
||||
private PropertyWindow propertyWindow;
|
||||
|
||||
public Machine machine;
|
||||
public CompleteInfo completeInfo;
|
||||
|
||||
public OpenMachineDashBoardCommand(PropertyWindow propertyWindow, Machine machine, CompleteInfo completeInfo)
|
||||
public OpenMachineDashBoardCommand(Machine machine, CompleteInfo completeInfo)
|
||||
{
|
||||
this.propertyWindow = propertyWindow;
|
||||
this.machine = machine;
|
||||
this.completeInfo = completeInfo;
|
||||
}
|
||||
public void Execute(object? parameter = null)
|
||||
{
|
||||
var uiManager = ChunilENGSceneMain.Instance.GetManager<ChunilENGUIManager>();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveCurrentSideTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().SideTabBar.DeactivateCurrentTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveSideToolButton();
|
||||
propertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<BottomLeftToolbar>().HideItem();
|
||||
|
||||
var topmenuPanel = uiManager.GetCanvas<StaticCanvas>().GetPanel<TopMenuPanel>();
|
||||
topmenuPanel.PropertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<PopupCanvas>().GetPanel<MachineDashBoard>().SetDetailDashBoardData(completeInfo, machine);
|
||||
uiManager.GetCanvas<PopupCanvas>().OpenPanel<MachineDashBoard>(CanvasPanelOpenMode.Single);
|
||||
|
||||
@@ -8,19 +8,16 @@ namespace ChunilENG.UI.Command
|
||||
{
|
||||
public class OpenProductionProgressPanelCommand : ICommand
|
||||
{
|
||||
private PropertyWindow propertyWindow;
|
||||
|
||||
public OpenProductionProgressPanelCommand(PropertyWindow propertyWindow)
|
||||
{
|
||||
this.propertyWindow = propertyWindow;
|
||||
}
|
||||
|
||||
public void Execute(object? parameter = null)
|
||||
{
|
||||
var uiManager = ChunilENGSceneMain.Instance.GetManager<ChunilENGUIManager>();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveCurrentSideTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().SideTabBar.DeactivateCurrentTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveSideToolButton();
|
||||
propertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<BottomLeftToolbar>().HideItem();
|
||||
|
||||
var topmenuPanel = uiManager.GetCanvas<StaticCanvas>().GetPanel<TopMenuPanel>();
|
||||
topmenuPanel.PropertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<PopupCanvas>().OpenPanel<ProductionProgressPanel>(CanvasPanelOpenMode.Single);
|
||||
}
|
||||
|
||||
@@ -8,19 +8,16 @@ namespace ChunilENG.UI.Command
|
||||
{
|
||||
public class OpenTotalProgressPanelCommand : ICommand
|
||||
{
|
||||
private PropertyWindow propertyWindow;
|
||||
|
||||
public OpenTotalProgressPanelCommand(PropertyWindow propertyWindow)
|
||||
{
|
||||
this.propertyWindow = propertyWindow;
|
||||
}
|
||||
|
||||
public void Execute(object? parameter = null)
|
||||
{
|
||||
var uiManager = ChunilENGSceneMain.Instance.GetManager<ChunilENGUIManager>();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveCurrentSideTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().SideTabBar.DeactivateCurrentTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveSideToolButton();
|
||||
propertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<BottomLeftToolbar>().HideItem();
|
||||
|
||||
var topmenuPanel = uiManager.GetCanvas<StaticCanvas>().GetPanel<TopMenuPanel>();
|
||||
topmenuPanel.PropertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<PopupCanvas>().OpenPanel<TotalProgressPanel>(CanvasPanelOpenMode.Single);
|
||||
}
|
||||
|
||||
@@ -8,19 +8,16 @@ namespace ChunilENG.UI.Command
|
||||
{
|
||||
public class OpenWorkProgressPanelCommand : ICommand
|
||||
{
|
||||
private PropertyWindow propertyWindow;
|
||||
|
||||
public OpenWorkProgressPanelCommand(PropertyWindow propertyWindow)
|
||||
{
|
||||
this.propertyWindow = propertyWindow;
|
||||
}
|
||||
|
||||
public void Execute(object? parameter = null)
|
||||
{
|
||||
var uiManager = ChunilENGSceneMain.Instance.GetManager<ChunilENGUIManager>();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveCurrentSideTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().SideTabBar.DeactivateCurrentTab();
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<LeftSidePanel>().DeactiveSideToolButton();
|
||||
propertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<StaticCanvas>().GetPanel<BottomLeftToolbar>().HideItem();
|
||||
|
||||
var topmenuPanel = uiManager.GetCanvas<StaticCanvas>().GetPanel<TopMenuPanel>();
|
||||
topmenuPanel.PropertyWindow.Hide();
|
||||
|
||||
uiManager.GetCanvas<PopupCanvas>().OpenPanel<WorkProgressPanel>(CanvasPanelOpenMode.Single);
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace ChunilENG.Management
|
||||
private void OnClickMachineInfoItem(MachineInfoItem machineInfoItem)
|
||||
{
|
||||
machineInfoItem.transform.SetAsLastSibling();
|
||||
CommandManager.Instance.Execute(new OpenMachineDashBoardCommand(propertyWindow, itemToMachines[machineInfoItem], machineInfoItem.data));
|
||||
CommandManager.Instance.Execute(new OpenMachineDashBoardCommand(itemToMachines[machineInfoItem], machineInfoItem.data));
|
||||
}
|
||||
|
||||
bool IsScreenRange(Machine machine)
|
||||
@@ -270,7 +270,7 @@ namespace ChunilENG.Management
|
||||
{
|
||||
item.transform.SetAsLastSibling();
|
||||
CommandManager.Instance.Execute(
|
||||
new OpenMachineDashBoardCommand(propertyWindow, null, item.data));
|
||||
new OpenMachineDashBoardCommand(null, item.data));
|
||||
}
|
||||
|
||||
private CompleteInfo CreateMockCompleteInfo(EquipmentItem equipment)
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using OCTOPUS_TWIN.UI;
|
||||
using OCTOPUS_TWIN.Command;
|
||||
using ChunilENG.Management;
|
||||
|
||||
namespace ChunilENG.UI
|
||||
{
|
||||
@@ -52,6 +53,7 @@ namespace ChunilENG.UI
|
||||
private void OnClickButton(FloorControlItem currentButton)
|
||||
{
|
||||
OnValueChanged(currentButton.value);
|
||||
ChunilENGSceneMain.Instance.GetManager<ChunilENGUIManager>().GetCanvas<StaticCanvas>().GetPanel<BottomLeftToolbar>().HideItem();
|
||||
}
|
||||
|
||||
public void ChangedCurrentFloor(int value)
|
||||
|
||||
@@ -31,16 +31,6 @@ namespace ChunilENG.UI
|
||||
|
||||
await UniTask.CompletedTask;
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
SetupToolBox();
|
||||
DeactiveCurrentSideTab();
|
||||
|
||||
var initialViewCommand = new CameraViewModeChangedCommand(ViewMode.PerspectiveView);
|
||||
initialViewCommand.Execute();
|
||||
}
|
||||
|
||||
private void SetupToolBox()
|
||||
{
|
||||
// ToolbarModel 인스턴스 생성
|
||||
@@ -139,10 +129,6 @@ namespace ChunilENG.UI
|
||||
recorder = new CaptureRecoder();
|
||||
recorder.Setup();
|
||||
}
|
||||
public void DeactiveCurrentSideTab()
|
||||
{
|
||||
sideTabBar.DeactivateCurrentTab();
|
||||
}
|
||||
public void DeactiveSideToolButton()
|
||||
{
|
||||
toolbar.SetToggleButtonState("button_icon_control", false);
|
||||
|
||||
@@ -28,6 +28,8 @@ namespace ChunilENG
|
||||
[SerializeField]
|
||||
private PropertyWindow propertyWindow;
|
||||
|
||||
public PropertyWindow PropertyWindow { get => propertyWindow; }
|
||||
|
||||
public override async UniTask Init()
|
||||
{
|
||||
propertyWindow = FindAnyObjectByType<PropertyWindow>(FindObjectsInactive.Include);
|
||||
@@ -42,11 +44,6 @@ namespace ChunilENG
|
||||
await UniTask.CompletedTask;
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
SetupToolBox();
|
||||
}
|
||||
|
||||
private ContentModalView contentModalView;
|
||||
private async void SetSettingContent()
|
||||
{
|
||||
@@ -132,11 +129,11 @@ namespace ChunilENG
|
||||
Debug.LogWarning("TopMenuController is not assigned in SceneMain.");
|
||||
return;
|
||||
}
|
||||
topMenu.AddMenuItem(new MenuItemData("total_production_status", "종합 진행 현황", new OpenTotalProgressPanelCommand(propertyWindow)));
|
||||
topMenu.AddMenuItem(new MenuItemData("production_status", "작업 진행 현황", new OpenWorkProgressPanelCommand(propertyWindow)));
|
||||
topMenu.AddMenuItem(new MenuItemData("production_status", "생산 진행 현황", new OpenProductionProgressPanelCommand(propertyWindow)));
|
||||
topMenu.AddMenuItem(new MenuItemData("injection_status", "조립 진행 현황", new OpenAssemblyProgressPanelCommand(propertyWindow)));
|
||||
topMenu.AddMenuItem(new MenuItemData("production_status", "최종 검사", new OpenFinalInspectionPanelCommand(propertyWindow)));
|
||||
topMenu.AddMenuItem(new MenuItemData("total_production_status", "종합 진행 현황", new OpenTotalProgressPanelCommand()));
|
||||
topMenu.AddMenuItem(new MenuItemData("production_status", "작업 진행 현황", new OpenWorkProgressPanelCommand()));
|
||||
topMenu.AddMenuItem(new MenuItemData("production_status", "생산 진행 현황", new OpenProductionProgressPanelCommand()));
|
||||
topMenu.AddMenuItem(new MenuItemData("injection_status", "조립 진행 현황", new OpenAssemblyProgressPanelCommand()));
|
||||
topMenu.AddMenuItem(new MenuItemData("production_status", "최종 검사", new OpenFinalInspectionPanelCommand()));
|
||||
topMenu.Initialize();
|
||||
}
|
||||
private void SetupToolBox()
|
||||
|
||||
@@ -22,10 +22,9 @@ MonoBehaviour:
|
||||
sceneNames:
|
||||
- KEPCOScene
|
||||
volumeProfiles:
|
||||
- {fileID: 11400000, guid: 10fc4df2da32a41aaa32d77bc913491c, type: 2}
|
||||
- {fileID: 11400000, guid: b88f584d02e80704dbb909e5ca9daccb, type: 2}
|
||||
staticCanvasPrefab: {fileID: 9115987721486925841, guid: df39e435fbc6b27458c0ced9b20b0bd7, type: 3}
|
||||
popupCanvasPrefab: {fileID: 6944805395147841475, guid: 211ab265afe9f854bae51f1a2602c3f5, type: 3}
|
||||
contentModalViewPrefab: {fileID: 660829159889194611, guid: e1d277c7d9a85d3419471387fb9f9bee, type: 3}
|
||||
sceneMain: {fileID: 5850141579646257595, guid: 2b7f55830958f804aaad00ae1d4bbe6a, type: 3}
|
||||
labelCanvas: {fileID: 5307194914983898905, guid: 3611a796a20d61f4faad719a2a0352be, type: 3}
|
||||
isLocked: 0
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace KEPCO
|
||||
|
||||
public void InitSceneMain()
|
||||
{
|
||||
BaseCameraPoistion();
|
||||
OnAppInitialized();
|
||||
}
|
||||
|
||||
@@ -41,8 +42,6 @@ namespace KEPCO
|
||||
//await requestDataAsync();
|
||||
animationManager = await LoadManager<ScriptableAnimationManager>();
|
||||
colorPalette = await LoadManager<ColorPalette>();
|
||||
facilityManager = await LoadManager<FacilityManager>();
|
||||
sensorManager = await LoadManager<SensorManager>();
|
||||
|
||||
building = FindAnyObjectByType<Building>();
|
||||
await building.Init();
|
||||
@@ -60,6 +59,16 @@ namespace KEPCO
|
||||
await UniTask.CompletedTask;
|
||||
}
|
||||
|
||||
private void BaseCameraPoistion()
|
||||
{
|
||||
var controller = OctopusTwinAppMain.Instance.cameraController;
|
||||
controller.currentAzimuth = -139f;
|
||||
controller.currentElevation = 23f;
|
||||
controller.currentDistance = 30f;
|
||||
controller.SetTargetPos(new Vector3(16.5f, 0.05f, -12));
|
||||
}
|
||||
|
||||
|
||||
private readonly Dictionary<Type, Manager> managers = new();
|
||||
private async UniTask<T> LoadManager<T>() where T : Manager
|
||||
{
|
||||
@@ -78,6 +87,7 @@ namespace KEPCO
|
||||
//Debug.LogWarning($"Duplicate Manager: {type.Name}");
|
||||
return manager;
|
||||
}
|
||||
|
||||
await manager.Init();
|
||||
managers.Add(type, manager);
|
||||
|
||||
|
||||
@@ -40,9 +40,6 @@ namespace KEPCO.Managements
|
||||
{
|
||||
Application.targetFrameRate = 60;
|
||||
|
||||
facilityManager = KEPCOSceneMain.Instance.GetManager<FacilityManager>();
|
||||
sensorManager = KEPCOSceneMain.Instance.GetManager<SensorManager>();
|
||||
|
||||
SCADAPanelData = Resources.Load<TextAsset>($"{ResourceURL.kepcoENGdataFolderPath}{nameof(SCADAPanelData)}").text;
|
||||
operateInfo = JsonConvert.DeserializeObject<OperateApiResponse>(SCADAPanelData);
|
||||
|
||||
@@ -52,16 +49,23 @@ namespace KEPCO.Managements
|
||||
SensorColorData = Resources.Load<TextAsset>($"{ResourceURL.kepcoENGdataFolderPath}{nameof(SensorColorData)}").text;
|
||||
sensorStatusInfo = JsonConvert.DeserializeObject<SensorEventApiResponse>(SensorColorData);
|
||||
|
||||
UpdateAllFacilityData();
|
||||
UpdateAllSensorData();
|
||||
test = BuildAllPanelsGrouped(11);
|
||||
|
||||
KEPCOSceneMain.Instance.Initialized += OnSceneInitialized;
|
||||
|
||||
await UniTask.CompletedTask;
|
||||
}
|
||||
public void OnSceneInitialized()
|
||||
{
|
||||
var parent = FindObjectsByType<Tag_Machine>(FindObjectsSortMode.None);
|
||||
|
||||
facilityManager = new FacilityManager();
|
||||
facilityManager.InitFacility(parent);
|
||||
|
||||
sensorManager = new SensorManager();
|
||||
sensorManager.InitSensor(parent);
|
||||
|
||||
UpdateAllFacilityData();
|
||||
UpdateAllSensorData();
|
||||
|
||||
var facilitiesGroups = BuildAllPanelsGrouped(11);
|
||||
CommandManager.Instance.Execute(new SetTotalProgressDataCommand(facilitiesGroups));
|
||||
}
|
||||
|
||||
@@ -8,11 +8,12 @@ using OCTOPUS_TWIN.Constants;
|
||||
using KEPCO.Object;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UVC.Management;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace KEPCO.Managements
|
||||
{
|
||||
[Serializable]
|
||||
public class FacilityManager : Manager
|
||||
public class FacilityManager
|
||||
{
|
||||
public List<Facility> facilities = new List<Facility>();
|
||||
|
||||
@@ -22,12 +23,14 @@ namespace KEPCO.Managements
|
||||
public Dictionary<string, Facility> nameToFacility = new();
|
||||
public Dictionary<string, Facility> codeToFacility = new();
|
||||
|
||||
public override async UniTask Init()
|
||||
public void InitFacility(Tag_Machine[] parent)
|
||||
{
|
||||
jsonFacilityNameTable.Clear();
|
||||
jsonFacilityCodeTable.Clear();
|
||||
nameToFacility.Clear();
|
||||
codeToFacility.Clear();
|
||||
facilities.Clear();
|
||||
|
||||
var facilityParents = FindObjectsByType<Tag_Machine>(FindObjectsSortMode.None);
|
||||
|
||||
var json = ReadJsonFacilityData();
|
||||
|
||||
foreach(var j in json)
|
||||
@@ -37,7 +40,7 @@ namespace KEPCO.Managements
|
||||
jsonFacilityCodeTable.TryAdd(code, j);
|
||||
}
|
||||
|
||||
foreach(var m in facilityParents)
|
||||
foreach(var m in parent)
|
||||
{
|
||||
var childTransforms = m.GetComponentsInChildren<Transform>();
|
||||
|
||||
@@ -74,6 +77,7 @@ namespace KEPCO.Managements
|
||||
continue;
|
||||
}
|
||||
}
|
||||
fac.Init();
|
||||
fac.data = facData;
|
||||
|
||||
nameToFacility.TryAdd(name, fac);
|
||||
@@ -85,7 +89,7 @@ namespace KEPCO.Managements
|
||||
facilities.Add(fac);
|
||||
}
|
||||
}
|
||||
await UniTask.CompletedTask;
|
||||
//await UniTask.CompletedTask;
|
||||
}
|
||||
public JsonFacilityData[] ReadJsonFacilityData()
|
||||
{
|
||||
|
||||
@@ -17,6 +17,9 @@ namespace KEPCO.Managements
|
||||
public UI_FacilityIcon facilityIcon;
|
||||
public UI_SensorIcon sensorIcon;
|
||||
|
||||
private List<UI_FacilityIcon> facilityIcons = new();
|
||||
private List<UI_SensorIcon> sensorIcons = new();
|
||||
|
||||
OrbitalController controller;
|
||||
DataManager dataManager;
|
||||
|
||||
@@ -38,40 +41,59 @@ namespace KEPCO.Managements
|
||||
internal bool alramVisibliity;
|
||||
|
||||
public override async UniTask Init()
|
||||
{
|
||||
KEPCOSceneMain.Instance.Initialized += InitIcon;
|
||||
await UniTask.CompletedTask;
|
||||
}
|
||||
public void InitIcon()
|
||||
{
|
||||
controller = OctopusTwinAppMain.Instance.cameraController;
|
||||
dataManager = KEPCOSceneMain.Instance.GetManager<DataManager>();
|
||||
|
||||
foreach(var facility in dataManager.facilityManager.facilities)
|
||||
ClearIcon();
|
||||
|
||||
foreach (var facility in dataManager.facilityManager.facilities)
|
||||
{
|
||||
var icon = CreateFacilityIcon();
|
||||
var icon = CreateFacilityIcon(facility.data);
|
||||
icon.Init(facility);
|
||||
//icon.UI_FacilityInfo = facilityInfo;
|
||||
}
|
||||
|
||||
|
||||
foreach (var sensor in dataManager.sensorManager.sensors)
|
||||
{
|
||||
var icon = CreateScreenSpaceSensorIcon();
|
||||
var icon = CreateScreenSpaceSensorIcon(sensor.data);
|
||||
var sensorData = dataManager.sensorManager.sensorDataList[sensor];
|
||||
sensor.SetData(sensorData, icon);
|
||||
}
|
||||
}
|
||||
private void ClearIcon()
|
||||
{
|
||||
foreach (var facilityIcon in facilityIcons)
|
||||
{
|
||||
Destroy(facilityIcon.gameObject);
|
||||
}
|
||||
facilityIcons.Clear();
|
||||
|
||||
await UniTask.CompletedTask;
|
||||
foreach (var sensorIcon in sensorIcons)
|
||||
{
|
||||
Destroy(sensorIcon.gameObject);
|
||||
}
|
||||
sensorIcons.Clear();
|
||||
}
|
||||
|
||||
private UI_FacilityIcon CreateFacilityIcon()
|
||||
private UI_FacilityIcon CreateFacilityIcon(JsonFacilityData data)
|
||||
{
|
||||
var icon = GameObject.Instantiate(facilityIcon);
|
||||
icon.transform.SetParent(transform, false);
|
||||
facilityIcons.Add(icon);
|
||||
return icon;
|
||||
}
|
||||
|
||||
|
||||
UI_SensorIcon CreateScreenSpaceSensorIcon()
|
||||
UI_SensorIcon CreateScreenSpaceSensorIcon(JsonSensorData data)
|
||||
{
|
||||
var icon = GameObject.Instantiate(sensorIcon);
|
||||
icon.transform.SetParent(transform, false);
|
||||
sensorIcons.Add(icon);
|
||||
return icon;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,12 +7,13 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UVC.Management;
|
||||
|
||||
namespace KEPCO.Managements
|
||||
{
|
||||
[Serializable]
|
||||
public class SensorManager : Manager
|
||||
public class SensorManager
|
||||
{
|
||||
public List<Sensor> sensors = new List<Sensor>();
|
||||
|
||||
@@ -24,9 +25,16 @@ namespace KEPCO.Managements
|
||||
public Dictionary<string, JsonSensorData> jsonSensorCode = new();
|
||||
public Dictionary<Sensor, JsonSensorData> sensorDataList = new();
|
||||
|
||||
public override async UniTask Init()
|
||||
|
||||
public void InitSensor(Tag_Machine[] parent)
|
||||
{
|
||||
jsonSensorName.Clear();
|
||||
jsonSensorCode.Clear();
|
||||
sensorDataList.Clear();
|
||||
nameToSensor.Clear();
|
||||
codeToSensor.Clear();
|
||||
typeToSensor.Clear();
|
||||
sensors.Clear();
|
||||
|
||||
var json = ReadJsonSensorData();
|
||||
|
||||
@@ -37,9 +45,8 @@ namespace KEPCO.Managements
|
||||
|
||||
jsonSensorCode.TryAdd(code, j);
|
||||
}
|
||||
var machineParents = FindObjectsByType<Tag_Machine>(FindObjectsSortMode.None);
|
||||
|
||||
foreach (var m in machineParents)
|
||||
foreach (var m in parent)
|
||||
{
|
||||
var childTransforms = m.GetComponentsInChildren<Transform>();
|
||||
foreach (var c in childTransforms)
|
||||
@@ -87,7 +94,7 @@ namespace KEPCO.Managements
|
||||
sensorDataList.TryAdd(sensor, sensorData);
|
||||
}
|
||||
}
|
||||
await UniTask.CompletedTask;
|
||||
//await UniTask.CompletedTask;
|
||||
}
|
||||
public JsonSensorData[] ReadJsonSensorData()
|
||||
{
|
||||
|
||||
@@ -10,14 +10,6 @@ namespace KEPCO.Object
|
||||
{
|
||||
public class Building : MonoBehaviour
|
||||
{
|
||||
// Facility
|
||||
public List<Facility> GetMachines() { return facilityList; }
|
||||
public List<Facility> facilityList = new List<Facility>();
|
||||
|
||||
// Sensor
|
||||
public List<Sensor> GetThermostats() { return sensortList; }
|
||||
public List<Sensor> sensortList = new List<Sensor>();
|
||||
|
||||
// Floor
|
||||
public Floor GetCurFloor() { return floorList[curFloorIndex]; }
|
||||
private List<Floor> floorList = new List<Floor>();
|
||||
@@ -25,28 +17,12 @@ namespace KEPCO.Object
|
||||
|
||||
public async UniTask Init()
|
||||
{
|
||||
facilityList.Clear();
|
||||
floorList.Clear();
|
||||
sensortList.Clear();
|
||||
|
||||
var facilities = GetComponentsInChildren<Facility>();
|
||||
for (int i = 0; i < facilities.Length; i++)
|
||||
{
|
||||
await facilities[i].Init();
|
||||
facilityList.Add(facilities[i]);
|
||||
}
|
||||
|
||||
var sensors = GetComponentsInChildren<Sensor>();
|
||||
for (int i = 0; i < sensors.Length; i++)
|
||||
{
|
||||
await sensors[i].Init();
|
||||
sensortList.Add(sensors[i]);
|
||||
}
|
||||
|
||||
var floor = GetComponentsInChildren<Floor>();
|
||||
for (int i = 0; i < floor.Length; i++)
|
||||
{
|
||||
await floor[i].Init();
|
||||
floor[i].Init();
|
||||
floorList.Add(floor[i]);
|
||||
}
|
||||
var topFloorIndex = floorList.Count - 1;
|
||||
|
||||
@@ -24,12 +24,10 @@ namespace KEPCO.Object
|
||||
public Vector3 centerPos;
|
||||
public Vector3 originScale;
|
||||
|
||||
public async UniTask Init()
|
||||
public void Init()
|
||||
{
|
||||
centerPos = transform.GetMeshCenter();
|
||||
originScale = gameObject.transform.localScale;
|
||||
|
||||
await UniTask.CompletedTask;
|
||||
}
|
||||
|
||||
public void OnPointerClick(PointerEventData eventData)
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace KEPCO.Object
|
||||
public Transform startPoint;
|
||||
public GameObject Site;
|
||||
|
||||
public async UniTask Init()
|
||||
public void Init()
|
||||
{
|
||||
if (startPoint == null)
|
||||
{
|
||||
@@ -23,7 +23,6 @@ namespace KEPCO.Object
|
||||
|
||||
startPoint.transform.position = transform.GetMeshCenter();
|
||||
}
|
||||
await UniTask.CompletedTask;
|
||||
}
|
||||
public void SetGISActive(bool isOn)
|
||||
{
|
||||
|
||||
@@ -11,9 +11,9 @@ namespace KEPCO.Object
|
||||
{
|
||||
public class Sensor : MonoBehaviour
|
||||
{
|
||||
public async UniTask Init()
|
||||
public void Init()
|
||||
{
|
||||
await UniTask.CompletedTask;
|
||||
|
||||
}
|
||||
|
||||
public Floor _floor;
|
||||
|
||||
@@ -30,16 +30,15 @@ namespace KEPCO.UI
|
||||
ScrollView_FacilityList = GetElement<ScrollRect>(nameof(ScrollView_FacilityList));
|
||||
Button_Close = GetElement<Button>(nameof(Button_Close));
|
||||
|
||||
SetSensorScrollView();
|
||||
SetFacilityScrollView();
|
||||
Toggle_Sensor.onValueChanged.AddListener(OnValueChanged_Sensor);
|
||||
Toggle_Facility.onValueChanged.AddListener(OnValueChanged_Facility);
|
||||
scrollRects = GetComponentsInChildren<ScrollRect>();
|
||||
ScrollView_SensorList.gameObject.SetActive(false);
|
||||
Button_Close.onClick.AddListener(OnClickEvent_Close);
|
||||
ToggleAllSensor(false);
|
||||
gameObject.SetActive(false);
|
||||
|
||||
KEPCOSceneMain.Instance.Initialized += SetScrollView;
|
||||
|
||||
await UniTask.CompletedTask;
|
||||
}
|
||||
|
||||
@@ -48,15 +47,28 @@ namespace KEPCO.UI
|
||||
sensorTypeToggles[SensorType.ALL].toggle.isOn = visibility;
|
||||
}
|
||||
|
||||
public void ToggleSensor(SensorType st, bool visibility)
|
||||
public void SetScrollView()
|
||||
{
|
||||
sensorTypeToggles[st].toggle.isOn = visibility;
|
||||
}
|
||||
ClearScrollView();
|
||||
|
||||
public bool GetSensorTypeToggleValue(SensorType targetType)
|
||||
SetSensorScrollView();
|
||||
SetFacilityScrollView();
|
||||
|
||||
ToggleAllSensor(true);
|
||||
}
|
||||
private void ClearScrollView()
|
||||
{
|
||||
var targetTypeCheck = sensorTypeToggles[targetType].toggle.isOn;
|
||||
return targetTypeCheck;
|
||||
foreach(var sensorTypeToggle in sensorTypeToggles.Values)
|
||||
{
|
||||
Destroy(sensorTypeToggle.gameObject);
|
||||
}
|
||||
sensorTypeToggles.Clear();
|
||||
|
||||
foreach (var facilityToggle in facilityToggles)
|
||||
{
|
||||
Destroy(facilityToggle.gameObject);
|
||||
}
|
||||
facilityToggles.Clear();
|
||||
}
|
||||
|
||||
private void SetSensorScrollView()
|
||||
@@ -111,7 +123,6 @@ namespace KEPCO.UI
|
||||
foreach (var t in facilityToggles)
|
||||
t.toggle.isOn = value;
|
||||
};
|
||||
|
||||
facilityToggles.Add(all);
|
||||
|
||||
foreach (var f in facilities)
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d263a473629d1344898151a27f5f8ea
|
||||
guid: 1d263a473629d1344898151a27f5f8ea
|
||||
@@ -17,7 +17,7 @@ namespace KEPCO.UI
|
||||
private RectTransform Content;
|
||||
private Button Button_Close;
|
||||
|
||||
private Panel_Effect panel_effect;
|
||||
private Panel_Effect effect;
|
||||
|
||||
public TextMeshProUGUI CurrentDate;
|
||||
public TextMeshProUGUI CurrentTime;
|
||||
@@ -41,7 +41,7 @@ namespace KEPCO.UI
|
||||
MTRAttribute = GetElement<RectTransform>(nameof(MTRAttribute));
|
||||
GISAttribute = GetElement<RectTransform>(nameof(GISAttribute));
|
||||
|
||||
panel_effect = FindAnyObjectByType<Panel_Effect>(FindObjectsInactive.Include);
|
||||
effect = FindAnyObjectByType<Panel_Effect>(FindObjectsInactive.Include);
|
||||
|
||||
Button_Close.onClick.AddListener(Close);
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace KEPCO.UI
|
||||
public override void Open()
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
panel_effect.ActivePanel();
|
||||
effect.ActivePanel();
|
||||
gameObject.transform.SetAsLastSibling();
|
||||
|
||||
if (facilitiesContents.Count <= 0)
|
||||
@@ -70,7 +70,7 @@ namespace KEPCO.UI
|
||||
public override void Close()
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
panel_effect.DeactivePanel();
|
||||
effect.DeactivePanel();
|
||||
ResetStatusContentOrder();
|
||||
isChangedData = false;
|
||||
}
|
||||
|
||||
@@ -23,11 +23,6 @@ namespace ChunilENG.UI
|
||||
await UniTask.CompletedTask;
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
SetModel();
|
||||
}
|
||||
|
||||
private void SetModel()
|
||||
{
|
||||
var toolbarModel = new ToolbarModel();
|
||||
|
||||
Reference in New Issue
Block a user