From 83513641686a3b2a0c2d0b10cd535c74a315409e Mon Sep 17 00:00:00 2001 From: UVCLimHun Date: Mon, 12 May 2025 09:42:48 +0900 Subject: [PATCH] logicvisualization --- Assets/Image/temp.meta | 8 + Assets/Image/temp/1.png | Bin 0 -> 1374 bytes Assets/Image/temp/1.png.meta | 117 ++++ Assets/Image/temp/2.png | Bin 0 -> 1455 bytes Assets/Image/temp/2.png.meta | 117 ++++ Assets/Image/temp/3.png | Bin 0 -> 1522 bytes Assets/Image/temp/3.png.meta | 117 ++++ Assets/Prefabs/LogicDataPrefab.prefab | 113 ++++ Assets/Prefabs/LogicDataPrefab.prefab.meta | 7 + Assets/Prefabs/LogicPrefab.prefab | 141 +++++ Assets/Prefabs/LogicPrefab.prefab.meta | 7 + Assets/Scenes/Simulation_0.0.0.unity | 646 +++++++++++++++++++- Assets/StreamingAssets/WebConfig.json | 2 +- Assets/WorkSpace/LH/LogicDataManager.cs | 72 ++- Assets/WorkSpace/LH/LogicDataUI.cs | 16 + Assets/WorkSpace/LH/LogicDataUI.cs.meta | 2 + Assets/WorkSpace/LH/LogicItemButton.cs | 64 ++ Assets/WorkSpace/LH/LogicItemButton.cs.meta | 2 + Assets/WorkSpace/LH/SimulationInfo.cs | 31 +- Assets/WorkSpace/LH/WebManager.cs | 6 +- 20 files changed, 1447 insertions(+), 21 deletions(-) create mode 100644 Assets/Image/temp.meta create mode 100644 Assets/Image/temp/1.png create mode 100644 Assets/Image/temp/1.png.meta create mode 100644 Assets/Image/temp/2.png create mode 100644 Assets/Image/temp/2.png.meta create mode 100644 Assets/Image/temp/3.png create mode 100644 Assets/Image/temp/3.png.meta create mode 100644 Assets/Prefabs/LogicDataPrefab.prefab create mode 100644 Assets/Prefabs/LogicDataPrefab.prefab.meta create mode 100644 Assets/Prefabs/LogicPrefab.prefab create mode 100644 Assets/Prefabs/LogicPrefab.prefab.meta create mode 100644 Assets/WorkSpace/LH/LogicDataUI.cs create mode 100644 Assets/WorkSpace/LH/LogicDataUI.cs.meta create mode 100644 Assets/WorkSpace/LH/LogicItemButton.cs create mode 100644 Assets/WorkSpace/LH/LogicItemButton.cs.meta diff --git a/Assets/Image/temp.meta b/Assets/Image/temp.meta new file mode 100644 index 00000000..c6b28d25 --- /dev/null +++ b/Assets/Image/temp.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d5fe54d89e4010444aafbd5609d65658 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Image/temp/1.png b/Assets/Image/temp/1.png new file mode 100644 index 0000000000000000000000000000000000000000..3c60185792b782bb43be197c40f586b8302a1fb1 GIT binary patch literal 1374 zcmb7@i#L>c7{?zQm9{CG8uy|}Nt_z@>NMl>V%VV}OGc4t)-_gcb=5!Xzdb_zKf@6;sGcQ5!< zTdrAc5D>u8FD&%Z+-=z7)J4yruoEu)W%j$|ZUvROyX5H9yWs}+N|yDh^IrJCs+`OB z63qX6nh_Vaa^>yN09AEH8@*Uf)6$k}cRRpfT~hIa>X@AiHGPkVNk)Ztdt)rCt!hoH z{Me4G-0OZpS#{K^r^Y>R)GkdF49}YAM?DJvNSzSQ6nv3A@K?@Rbl+iKcfl~?yiwUgVzVIS(X5+@OU#_AzW zYW5!8lyoHb_nJv*YmK58X741&dXBO@MK4Ar2Q0R|rD|zU$?>c4z1sLWn@2jAkIXna zRN=q31jB2RBXjjbZ*Xs~fc?7&nm@?+__>eoMlJ8zSY6W$r#cJ4-t? zyeSu{ zE#9MV$12?87Z)xrp3PUv;LUYDS6;%1JA2kk>gSCYVvH7CO&d3M(rQhDZpFxD8{7%( z3!1yRE0Fd?ufNdG>dC80mzpTU%u2=z{aX!;?1pRyx1f;yYWPTYTG27Pvgo2AEenAj z?^Mn{%SqAmu+ILoW|}o2S#DYidF{Eg9xaB|T^aRVQ_WpvNnI{!U2@7DJbIy+ zcH`$QTY`T*cXBD!_s9*6PQL2Af8sM;HJxYy%UY05VIFN7!9PiGWGaecmlz;==~APrjHtZocH%k&m6jRb)T8gRL_rvOXsKA3t*?8~^|S literal 0 HcmV?d00001 diff --git a/Assets/Image/temp/1.png.meta b/Assets/Image/temp/1.png.meta new file mode 100644 index 00000000..4090f7c6 --- /dev/null +++ b/Assets/Image/temp/1.png.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: efbec67cdad027846bf38777cf20dd5d +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + 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 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 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 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Image/temp/2.png b/Assets/Image/temp/2.png new file mode 100644 index 0000000000000000000000000000000000000000..7825a68c334116f7ff1e327f85daf6cf69b0f2ca GIT binary patch literal 1455 zcmb7^`#02S9LGOyNjQr#Qc|c0U6^gLM8jajGUHBl42GeJoyLfg*>cY<)0C2A*)Af3 zl%`T<8KOaroJlT;RBS0ztzAjq{m%E~57_rP&+GI4yq|Nv-_P^>@Ej+5yK636wG03> zJxD}fw1%Q<|57ECBLM+N(V~#x>+THvUV|yLQKl1qApkU-Q2!dPg6X1qn080F#($L;uy#fD8^IsN&<%>;jg%V7!YFh2NrS#f(12NQ`^{ z^g`w^pMViX0cI{^Y{57HAOn~M7zU^UC|5?^XE{r+8sBC2l;7VA^%9M{a% zWNxf^*kE|UK_!#I(%Eb&{I$HIN}$Z~-j$p8d*{hM>!B)#K#G1{HUDaDZcw1;;dE)# zC2|yD@4YC= zrt!Te?>%|?=zvmsJr{2)I`_?ym>hLB-EF*{ynJo=$hL@P?bkV36w%w2x*zcQW?S%<8O?KmgS>W?dm%TFJl$W4tK^`V!(Jouu5dM4(FzibSmrC~)A zv=cFUhOF7SG5&_G5(V+y!!ITlFP&8TF7spAF z#hDH!>rd&ZkssC0v&F%U-lI0BP-4I!1lTc_x7JbazMm?)S;uv{UtZ)im>;# P{MGPq^(OM2scHWKcY9bl literal 0 HcmV?d00001 diff --git a/Assets/Image/temp/2.png.meta b/Assets/Image/temp/2.png.meta new file mode 100644 index 00000000..781ac129 --- /dev/null +++ b/Assets/Image/temp/2.png.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: df28ec870edde024f80a81e7df5e0193 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + 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 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 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 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Image/temp/3.png b/Assets/Image/temp/3.png new file mode 100644 index 0000000000000000000000000000000000000000..ab2d755b1c8fad3723ed2a293752126b2cb4a4a6 GIT binary patch literal 1522 zcmb7^`#02S9LGP%bYYB3>9FqERI)N-5J@u)Mh4@~=)xc}MjQ&cWGB_wE~+`XWTUWB zF1fXh+in=S6%pH#luI45#t1oL`|j8G9Dl%m&Us#+_vigQ=XpNQ^TU(IbhgKDQQrap zcn3Po4b3ccgm02T`Oecb1x-@XZuV3t@79nJM23bCG$JBUFBkIkY0N4YB0muPtnHATf%YtIuoZZ1DFe$UL z>m$O*_AUBCZ&~XM3zO2dwEgxP&EKN%UO^FyAa@Yt48lZ^JrYC~L9VXNBRh~Bgouzz z5b7vmf$)%*sON{oTt^-t&yYcj_K>v}H%HQa(VmIV)`rxsAl6#|nI;Ds#Uu3aOqRFz z@IJ+hQ&tNj0aJ}juhPsNXB%VtQqc2mCS~gE?U1e_>~DK7m>a28ttwS>Izp$@+s`|N zvCi3@^h(w9%~qQ_^-#DHUlpyVuhP-+{B)kKxv_RKaXG%0nRtUo?I|u67S@zDCXkk#WPRD#^eF!AA(DEO7HrIrERh^{@OVg9VpX3d%x^h z>e-m)PM45O#hRy-(=M@uw#Bbac1|a3IOpn=0=i%$KBI~1GN?0+Qw+4n+4n2xj)-o= z<*D(j0|43 zpvYyLT?viQqMUuvqZIs7Z{(RYl5j$4o;NOHzt752Y12%5tWlj3XMLrVMWspG3wK6F zy0g;?R7dXxXNSsu+i;7Nev~ZPmLF^}>GQGeF(vnqPrZs#dVnyAY>-3yLBgzVB`k3r`bwf3x4HMV-SmreZBDQ^sj(CtamCkL_!|%I9QxVg zvempW`K3ay*-?*wlxHXpZC}vk-zX>0>LsofE-`RlwQNzU_h8~y4P{MAu`MTw7PCp) zX7xv{yhFvd=5Klhfi2tPI|mglt=Shpe8D%;9z=d=+WkSEXkE9=x9j0|k4}v9CY6as z>{p%djMW?U>rw>ihWVU!QxU$qmy>U3u`JZByU4H|j#>)88@-S*iE}Yh)Q`cOudH=Y@-MfH zMk?=mb#+>iM=%{f&f=HdQDx7!`SBTj>Uq+&$NW5f=N=C|;T4jzkKGzjU!r>*w$WdY cslvilDb20@0_RJ|^VdEe2U}-aIn|%{A4maeng9R* literal 0 HcmV?d00001 diff --git a/Assets/Image/temp/3.png.meta b/Assets/Image/temp/3.png.meta new file mode 100644 index 00000000..68cac9ae --- /dev/null +++ b/Assets/Image/temp/3.png.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: 712ac39d02c25414086831cafd8127dc +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + 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 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 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 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/LogicDataPrefab.prefab b/Assets/Prefabs/LogicDataPrefab.prefab new file mode 100644 index 00000000..288042f9 --- /dev/null +++ b/Assets/Prefabs/LogicDataPrefab.prefab @@ -0,0 +1,113 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &769910763433437421 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3075810037062419163} + m_Layer: 5 + m_Name: LogicDataPrefab + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &3075810037062419163 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 769910763433437421} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 905601468767794671} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 200, y: 50} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &6871934178228186367 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 905601468767794671} + - component: {fileID: 8256617789918733147} + - component: {fileID: 7560547174349059047} + m_Layer: 5 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &905601468767794671 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6871934178228186367} + 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: 3075810037062419163} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &8256617789918733147 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6871934178228186367} + m_CullTransparentMesh: 1 +--- !u!114 &7560547174349059047 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6871934178228186367} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, 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_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 diff --git a/Assets/Prefabs/LogicDataPrefab.prefab.meta b/Assets/Prefabs/LogicDataPrefab.prefab.meta new file mode 100644 index 00000000..03d54847 --- /dev/null +++ b/Assets/Prefabs/LogicDataPrefab.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3f15f8d557f27994e9c6d1d93f75dbd9 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/LogicPrefab.prefab b/Assets/Prefabs/LogicPrefab.prefab new file mode 100644 index 00000000..b3f8ccdf --- /dev/null +++ b/Assets/Prefabs/LogicPrefab.prefab @@ -0,0 +1,141 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &4746851001632962896 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6653302140371857400} + - component: {fileID: 327366579309278035} + - component: {fileID: 2957469285194820179} + - component: {fileID: 2210399282865539074} + - component: {fileID: 6034126571667162187} + m_Layer: 5 + m_Name: LogicPrefab + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &6653302140371857400 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4746851001632962896} + 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: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 50, y: 50} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &327366579309278035 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4746851001632962896} + m_CullTransparentMesh: 1 +--- !u!114 &2957469285194820179 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4746851001632962896} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, 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_Sprite: {fileID: 21300000, guid: efbec67cdad027846bf38777cf20dd5d, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2210399282865539074 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4746851001632962896} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 2957469285194820179} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &6034126571667162187 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4746851001632962896} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: cf52d363324415e49be608e5975c6b33, type: 3} + m_Name: + m_EditorClassIdentifier: + iconImage: {fileID: 2957469285194820179} + nameText: {fileID: 0} + button: {fileID: 2210399282865539074} + queueIcon: {fileID: 21300000, guid: efbec67cdad027846bf38777cf20dd5d, type: 3} + resourceIcon: {fileID: 21300000, guid: df28ec870edde024f80a81e7df5e0193, type: 3} + componentIcon: {fileID: 21300000, guid: 712ac39d02c25414086831cafd8127dc, type: 3} diff --git a/Assets/Prefabs/LogicPrefab.prefab.meta b/Assets/Prefabs/LogicPrefab.prefab.meta new file mode 100644 index 00000000..13cb960d --- /dev/null +++ b/Assets/Prefabs/LogicPrefab.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 72314043a41090846a8c16ad04f3c028 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Simulation_0.0.0.unity b/Assets/Scenes/Simulation_0.0.0.unity index a958739c..cd1535ef 100644 --- a/Assets/Scenes/Simulation_0.0.0.unity +++ b/Assets/Scenes/Simulation_0.0.0.unity @@ -239,6 +239,81 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5153618} m_CullTransparentMesh: 1 +--- !u!1 &74764651 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 74764652} + - component: {fileID: 74764654} + - component: {fileID: 74764653} + m_Layer: 5 + m_Name: Backgorund + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &74764652 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 74764651} + 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: 1144109570} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &74764653 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 74764651} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, 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_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &74764654 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 74764651} + m_CullTransparentMesh: 1 --- !u!1 &100352218 GameObject: m_ObjectHideFlags: 0 @@ -359,6 +434,25 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 100352218} m_CullTransparentMesh: 1 +--- !u!1 &134481545 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1392524223077930677, guid: 6c1ed824d30fe8848957d865919227a0, type: 3} + m_PrefabInstance: {fileID: 594906197750746389} + m_PrefabAsset: {fileID: 0} +--- !u!114 &134481549 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 134481545} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8f854ce317316f0408084b113ea5c599, type: 3} + m_Name: + m_EditorClassIdentifier: + logicPrefab: {fileID: 4746851001632962896, guid: 72314043a41090846a8c16ad04f3c028, type: 3} + LogicWindow: {fileID: 1916153470} --- !u!1 &171403762 GameObject: m_ObjectHideFlags: 0 @@ -4697,6 +4791,42 @@ MonoBehaviour: m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} m_SoftShadowQuality: 0 +--- !u!1 &761331468 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 761331469} + m_Layer: 5 + m_Name: DataPanel + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &761331469 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 761331468} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1873786564} + m_Father: {fileID: 1144109570} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -50, y: 0} + m_SizeDelta: {x: 100, y: 0} + m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &801042363 GameObject: m_ObjectHideFlags: 0 @@ -5285,6 +5415,43 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1037756585} m_CullTransparentMesh: 1 +--- !u!1 &1144109569 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1144109570} + m_Layer: 5 + m_Name: LogicDataWindow + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1144109570 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1144109569} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 74764652} + - {fileID: 761331469} + m_Father: {fileID: 1916153470} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 1200, y: 700} + m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1177672539 GameObject: m_ObjectHideFlags: 0 @@ -5949,6 +6116,142 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1297659965} m_CullTransparentMesh: 1 +--- !u!1 &1299295898 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1299295899} + - component: {fileID: 1299295901} + - component: {fileID: 1299295900} + m_Layer: 5 + m_Name: Text (TMP) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1299295899 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1299295898} + 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: 8942379245835123404} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: -50, y: 0} + m_SizeDelta: {x: 100, y: 50} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1299295900 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1299295898} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, 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_text: a + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4278190080 + m_fontColor: {r: 0, g: 0, b: 0, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 36 + m_fontSizeBase: 36 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_TextWrappingMode: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 0 + m_ActiveFontFeatures: 6e72656b + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_EmojiFallbackSupport: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!222 &1299295901 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1299295898} + m_CullTransparentMesh: 1 --- !u!1 &1407014991 GameObject: m_ObjectHideFlags: 0 @@ -6334,6 +6637,82 @@ MonoBehaviour: m_MipBias: 0 m_VarianceClampScale: 0.9 m_ContrastAdaptiveSharpening: 0 +--- !u!1 &1873786563 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1873786564} + - component: {fileID: 1873786566} + - component: {fileID: 1873786565} + m_Layer: 5 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1873786564 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1873786563} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 8942379245835123403} + m_Father: {fileID: 761331469} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -100, y: 0} + m_SizeDelta: {x: 200, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1873786565 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1873786563} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.5, g: 0.5, b: 0.5, 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_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1873786566 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1873786563} + m_CullTransparentMesh: 1 --- !u!1 &1893183901 GameObject: m_ObjectHideFlags: 0 @@ -6635,6 +7014,7 @@ RectTransform: - {fileID: 100352219} - {fileID: 806565724} - {fileID: 457552547} + - {fileID: 1144109570} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -6654,6 +7034,142 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1ea6a631f762ef04192456d9b727b870, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!1 &1917546189 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1917546190} + - component: {fileID: 1917546192} + - component: {fileID: 1917546191} + m_Layer: 5 + m_Name: Text (TMP) (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1917546190 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1917546189} + 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: 8942379245835123404} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 50, y: 0} + m_SizeDelta: {x: 100, y: 50} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1917546191 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1917546189} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, 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_text: b + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4278190080 + m_fontColor: {r: 0, g: 0, b: 0, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 36 + m_fontSizeBase: 36 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_TextWrappingMode: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 0 + m_ActiveFontFeatures: 6e72656b + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_EmojiFallbackSupport: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!222 &1917546192 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1917546189} + m_CullTransparentMesh: 1 --- !u!1 &1961270336 GameObject: m_ObjectHideFlags: 0 @@ -7408,7 +7924,10 @@ PrefabInstance: m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] - m_AddedComponents: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 1392524223077930677, guid: 6c1ed824d30fe8848957d865919227a0, type: 3} + insertIndex: -1 + addedObject: {fileID: 134481549} m_SourcePrefab: {fileID: 100100000, guid: 6c1ed824d30fe8848957d865919227a0, type: 3} --- !u!1001 &7082281200638192786 PrefabInstance: @@ -8251,6 +8770,131 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 70235dca951c3f6439ad2255cb99a967, type: 3} +--- !u!1001 &8942379245835123402 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 1873786564} + m_Modifications: + - target: {fileID: 769910763433437421, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_Name + value: LogicDataPrefab + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_SizeDelta.x + value: 200 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_SizeDelta.y + value: 50 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7560547174349059047, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_Color.b + value: 0.6 + objectReference: {fileID: 0} + - target: {fileID: 7560547174349059047, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_Color.g + value: 0.6 + objectReference: {fileID: 0} + - target: {fileID: 7560547174349059047, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + propertyPath: m_Color.r + value: 0.6 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: + - targetCorrespondingSourceObject: {fileID: 905601468767794671, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + insertIndex: -1 + addedObject: {fileID: 1299295899} + - targetCorrespondingSourceObject: {fileID: 905601468767794671, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + insertIndex: -1 + addedObject: {fileID: 1917546190} + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} +--- !u!224 &8942379245835123403 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 3075810037062419163, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + m_PrefabInstance: {fileID: 8942379245835123402} + m_PrefabAsset: {fileID: 0} +--- !u!224 &8942379245835123404 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 905601468767794671, guid: 3f15f8d557f27994e9c6d1d93f75dbd9, type: 3} + m_PrefabInstance: {fileID: 8942379245835123402} + m_PrefabAsset: {fileID: 0} --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 diff --git a/Assets/StreamingAssets/WebConfig.json b/Assets/StreamingAssets/WebConfig.json index f1fc11db..b17f428a 100644 --- a/Assets/StreamingAssets/WebConfig.json +++ b/Assets/StreamingAssets/WebConfig.json @@ -2,7 +2,7 @@ "configs": [ { "host": "http://220.90.135.42", - "port": 3037, + "port": 3046, "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcmlkIjoic3lzdGVtIiwibmFtZSI6IuyLnOyKpO2FnOq0gOumrOyekCIsImF1dGgiOiJzeXN0ZW0iLCJjb21wYW55SWQiOm51bGwsImlhdCI6MTczNTYwOTgyOCwiZXhwIjoxNzcxNjA5ODI4fQ.ApXLL_RsWWaa2KwRKrg1z8iT9MNYdZFqN-6Mn1Lvq8Q" } ] diff --git a/Assets/WorkSpace/LH/LogicDataManager.cs b/Assets/WorkSpace/LH/LogicDataManager.cs index e640418c..82ad52e4 100644 --- a/Assets/WorkSpace/LH/LogicDataManager.cs +++ b/Assets/WorkSpace/LH/LogicDataManager.cs @@ -1,16 +1,68 @@ using UnityEngine; +using System.Collections.Generic; +using System.Collections; +using Octopus.Simulator.Networks; +using Newtonsoft.Json; -public class LogicDataManager : MonoBehaviour +namespace Octopus.Simulator { - // Start is called once before the first execution of Update after the MonoBehaviour is created - void Start() + public class LogicDataManager : MonoBehaviour { - - } + SimulationData currentInfo; + [SerializeField] + GameObject logicPrefab; + [SerializeField] + RectTransform LogicWindow; + // Start is called once before the first execution of Update after the MonoBehaviour is created + void Start() + { + WebManager.webManager.Request_Get($"{WebManager.webManager.apiConfig.history}/1", (flag, value) => + { + if (flag) + { + Debug.Log(value); + var info = JsonConvert.DeserializeObject(value); + GetInfo(info.data); + } + }); + } - // Update is called once per frame - void Update() - { - + void GetInfo(SimulationData info) + { + currentInfo = info; + QueueVisulization(info.logicData.queues); + ResourceVisulization(info.logicData.resources); + ComponentVisulization(info.logicData.components); + } + + void QueueVisulization(List queues) + { + foreach(var q in queues) + { + var l=Instantiate(logicPrefab,LogicWindow); + var item = l.GetComponent(); + item.Setup(q); + } + } + + void ResourceVisulization(List resources) + { + foreach (var r in resources) + { + var l = Instantiate(logicPrefab, LogicWindow); + var item = l.GetComponent(); + item.Setup(r); + } + } + + void ComponentVisulization(List components) + { + foreach (var c in components) + { + var l = Instantiate(logicPrefab, LogicWindow); + var item = l.GetComponent(); + item.Setup(c); + } + } } -} +} \ No newline at end of file diff --git a/Assets/WorkSpace/LH/LogicDataUI.cs b/Assets/WorkSpace/LH/LogicDataUI.cs new file mode 100644 index 00000000..b8253008 --- /dev/null +++ b/Assets/WorkSpace/LH/LogicDataUI.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +public class LogicDataUI : MonoBehaviour +{ + // Start is called once before the first execution of Update after the MonoBehaviour is created + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Assets/WorkSpace/LH/LogicDataUI.cs.meta b/Assets/WorkSpace/LH/LogicDataUI.cs.meta new file mode 100644 index 00000000..6c583f2e --- /dev/null +++ b/Assets/WorkSpace/LH/LogicDataUI.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 567043042a7aab64f807ca45547e1c9f \ No newline at end of file diff --git a/Assets/WorkSpace/LH/LogicItemButton.cs b/Assets/WorkSpace/LH/LogicItemButton.cs new file mode 100644 index 00000000..95babc4b --- /dev/null +++ b/Assets/WorkSpace/LH/LogicItemButton.cs @@ -0,0 +1,64 @@ +using Octopus.Simulator; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; +using TMPro; + +public class LogicItemButton : MonoBehaviour +{ + [Header("UI References")] + [SerializeField] private Image iconImage; + [SerializeField] private TMP_Text nameText; + [SerializeField] private Button button; + + [Header("Type Icons")] + [SerializeField] private Sprite queueIcon; + [SerializeField] private Sprite resourceIcon; + [SerializeField] private Sprite componentIcon; + + // ŸÀÔ¡æ¾ÆÀÌÄÜ ¸ÅÇÎ + private Dictionary IconMap; + + private ILogicItem currentItem; + + private void Awake() + { + IconMap = new Dictionary() + { + { LogicItemType.Queue, queueIcon }, + { LogicItemType.Resource, resourceIcon }, + { LogicItemType.Component, componentIcon } + }; + } + + /// + /// ¿ÜºÎ¿¡¼­ ÀÌ ¹öưÀ» ÃʱâÈ­ÇÒ ¶§ È£Ãâ + /// + public void Setup(ILogicItem item) + { + currentItem = item; + + //nameText.text = item.Name; + iconImage.sprite = IconMap[item.ItemType]; + + button.onClick.RemoveAllListeners(); + button.onClick.AddListener(OnClick); + } + + private void OnClick() + { + // Ŭ¸¯µÆÀ» ¶§ ŸÀÔº°·Î ´Ù¸¥ Á¤º¸ Ç¥½Ã + switch (currentItem.ItemType) + { + case LogicItemType.Queue: + //UIManager.Instance.ShowQueueInfo(currentItem as LogicQueue); + break; + case LogicItemType.Resource: + //UIManager.Instance.ShowResourceInfo(currentItem as LogicResource); + break; + case LogicItemType.Component: + //UIManager.Instance.ShowComponentInfo(currentItem as LogicComponent); + break; + } + } +} \ No newline at end of file diff --git a/Assets/WorkSpace/LH/LogicItemButton.cs.meta b/Assets/WorkSpace/LH/LogicItemButton.cs.meta new file mode 100644 index 00000000..cb579b77 --- /dev/null +++ b/Assets/WorkSpace/LH/LogicItemButton.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: cf52d363324415e49be608e5975c6b33 \ No newline at end of file diff --git a/Assets/WorkSpace/LH/SimulationInfo.cs b/Assets/WorkSpace/LH/SimulationInfo.cs index cf041ae5..8882b578 100644 --- a/Assets/WorkSpace/LH/SimulationInfo.cs +++ b/Assets/WorkSpace/LH/SimulationInfo.cs @@ -44,8 +44,8 @@ namespace Octopus.Simulator public string name; public bool trace; public List queues; - public List resources; - public List components; + public List resources; + public List components; public int simulation_time; } @@ -55,16 +55,31 @@ namespace Octopus.Simulator public int duration; public bool realtime; } + public enum LogicItemType + { + Queue, + Resource, + Component + } + public interface ILogicItem + { + string Name { get; } + string Description { get; } + LogicItemType ItemType { get; } + } [Serializable] - public class LogicQueue + public class LogicQueue:ILogicItem { public string name; public string description; + public string Name => name; + public string Description => description; + public LogicItemType ItemType => LogicItemType.Queue; } [Serializable] - public class LogicResources + public class LogicResource:ILogicItem { public string name; public int capacity; @@ -73,6 +88,9 @@ namespace Octopus.Simulator public double speed_factor; public OperationHours OperationHours; public int breakdown_interval; + public string Name => name; + public string Description => description; + public LogicItemType ItemType => LogicItemType.Resource; } [Serializable] @@ -83,7 +101,7 @@ namespace Octopus.Simulator } [Serializable] - public class LogicComponents + public class LogicComponent:ILogicItem { public string name; public int rate; @@ -94,6 +112,9 @@ namespace Octopus.Simulator public int transport_time; public string required_resource; public int processing_time; + public string Name => name; + public string Description => description; + public LogicItemType ItemType => LogicItemType.Component; } [Serializable] diff --git a/Assets/WorkSpace/LH/WebManager.cs b/Assets/WorkSpace/LH/WebManager.cs index 9004023d..2237e888 100644 --- a/Assets/WorkSpace/LH/WebManager.cs +++ b/Assets/WorkSpace/LH/WebManager.cs @@ -33,9 +33,8 @@ namespace Octopus.Simulator.Networks { webManager = this; SetWebConfig(); - SetApiConfig(); - /* - Request_Get("/simulation/histories/3", (flag, value) => + SetApiConfig(); + Request_Get("/simulation/histories/1", (flag, value) => { if (flag) { @@ -43,7 +42,6 @@ namespace Octopus.Simulator.Networks info = JsonConvert.DeserializeObject(value); } }); - */ } private void SetWebConfig()