diff --git a/Assets/Data/UI/ui_atlas.csv b/Assets/Data/UI/ui_atlas.csv index c27b31d7..10634ec1 100644 --- a/Assets/Data/UI/ui_atlas.csv +++ b/Assets/Data/UI/ui_atlas.csv @@ -22,3 +22,4 @@ folder,UI_Scenario,Assets/Resources/UI/Scenario/parts,2048,연의 전기 화면 folder,UI_Title,Assets/Resources/UI/Title/pack,1024,타이틀 화면 작은 연출(불씨 3 · 반짝이 · 흙먼지 · PD 2026-11-13) — Frame 층 한 장 = 드로우콜 1 · 햇살(1024²)은 single_area 초과라 단독 import,tre_bg,/frame_bg/bg_tre_,2048,보물 화면 배경 2장(보물고 · 금고 1080×1920) 원본 그대로 임포트(기본 1024 = 흐림 · 로비 bg_lobby 와 같은 이유 · PD 2026-11-13) import,gacha_bg,/frame_bg/bg_gacha_,2048,뽑기 연출 배경 초가집(1080×1920) 원본 그대로 임포트(기본 1024 = 흐림 · 로비 bg_lobby 와 같은 이유 · PD 2026-11-13) +folder,UI_Tower,Assets/Resources/UI/Tower/parts,1024,천하제일 탑 화면 작은 부품(PD 2026-11-18 「B안으로 진행해」) 문 빛 · 번짐 · 화살표 — Fx 층 한 장 = 드로우콜 1 · 탑 조각 3장(1038 폭)은 single_area 초과라 단독 diff --git a/Assets/Resources/UI/Tower.meta b/Assets/Resources/UI/Tower.meta new file mode 100644 index 00000000..e9a7826e --- /dev/null +++ b/Assets/Resources/UI/Tower.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fb206429c93fa634f9c4bb9fdb2bf1b8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/parts.meta b/Assets/Resources/UI/Tower/parts.meta new file mode 100644 index 00000000..e3f0c7fc --- /dev/null +++ b/Assets/Resources/UI/Tower/parts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4887015bdc034744d8b98d66d7d6d5c7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/parts/arrow.png b/Assets/Resources/UI/Tower/parts/arrow.png new file mode 100644 index 00000000..2e27da94 Binary files /dev/null and b/Assets/Resources/UI/Tower/parts/arrow.png differ diff --git a/Assets/Resources/UI/Tower/parts/arrow.png.meta b/Assets/Resources/UI/Tower/parts/arrow.png.meta new file mode 100644 index 00000000..0423f563 --- /dev/null +++ b/Assets/Resources/UI/Tower/parts/arrow.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 5b4ddc9e22e823e4aa1915450d64832c +TextureImporter: + internalIDToNameTable: + - first: + 213: -765150924802650856 + second: arrow_0 + 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: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + 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 + - serializedVersion: 4 + buildTarget: Android + 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: WebGL + 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: + - serializedVersion: 2 + name: arrow_0 + rect: + serializedVersion: 2 + x: 9 + y: 6 + width: 78 + height: 100 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 81d839fa943a165f0800000000000000 + internalID: -765150924802650856 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + arrow_0: -765150924802650856 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/parts/door_glow.png b/Assets/Resources/UI/Tower/parts/door_glow.png new file mode 100644 index 00000000..92d10b6e Binary files /dev/null and b/Assets/Resources/UI/Tower/parts/door_glow.png differ diff --git a/Assets/Resources/UI/Tower/parts/door_glow.png.meta b/Assets/Resources/UI/Tower/parts/door_glow.png.meta new file mode 100644 index 00000000..947458e2 --- /dev/null +++ b/Assets/Resources/UI/Tower/parts/door_glow.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 93b3dfd5ecd827b419041e794745eacb +TextureImporter: + internalIDToNameTable: + - first: + 213: -6819187306362437901 + second: door_glow_0 + 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: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + 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 + - serializedVersion: 4 + buildTarget: Android + 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: WebGL + 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: + - serializedVersion: 2 + name: door_glow_0 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 84 + height: 114 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 3fef96346416d51a0800000000000000 + internalID: -6819187306362437901 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + door_glow_0: -6819187306362437901 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/parts/door_halo.png b/Assets/Resources/UI/Tower/parts/door_halo.png new file mode 100644 index 00000000..8f8ed564 Binary files /dev/null and b/Assets/Resources/UI/Tower/parts/door_halo.png differ diff --git a/Assets/Resources/UI/Tower/parts/door_halo.png.meta b/Assets/Resources/UI/Tower/parts/door_halo.png.meta new file mode 100644 index 00000000..7e0f5cf0 --- /dev/null +++ b/Assets/Resources/UI/Tower/parts/door_halo.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 77b47789111f18545a788cb47135461a +TextureImporter: + internalIDToNameTable: + - first: + 213: -36049200051068670 + second: door_halo_0 + 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: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + 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 + - serializedVersion: 4 + buildTarget: Android + 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: WebGL + 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: + - serializedVersion: 2 + name: door_halo_0 + rect: + serializedVersion: 2 + x: 6 + y: 0 + width: 245 + height: 178 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 201e48c817def7ff0800000000000000 + internalID: -36049200051068670 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + door_halo_0: -36049200051068670 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/parts/import.json b/Assets/Resources/UI/Tower/parts/import.json new file mode 100644 index 00000000..9bafb8a7 --- /dev/null +++ b/Assets/Resources/UI/Tower/parts/import.json @@ -0,0 +1,92 @@ +{ + "_doc": "천하제일 탑 부품 임포트(PD 2026-11-18 「B안으로 진행해」) · UnitArtImporter(UI/Tower 하위 폴더)가 읽음 · 탑 조각 3장 = 1038 px 폭 그대로(max 2048 · single_area 초과 = 아틀라스 밖 단독) · 작은 부품 = 아틀라스 UI_Tower", + "items": [ + { + "file": "tower_top.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100, + "max": 2048 + }, + { + "file": "tower_floor.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100, + "max": 2048 + }, + { + "file": "tower_base.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100, + "max": 2048 + }, + { + "file": "door_glow.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100 + }, + { + "file": "door_halo.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100 + }, + { + "file": "arrow.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100 + } + ] +} \ No newline at end of file diff --git a/Assets/Resources/UI/Tower/parts/import.json.meta b/Assets/Resources/UI/Tower/parts/import.json.meta new file mode 100644 index 00000000..6eacbe30 --- /dev/null +++ b/Assets/Resources/UI/Tower/parts/import.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8162780a326f14146b15c5a9adf79b32 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/parts/tower_base.png b/Assets/Resources/UI/Tower/parts/tower_base.png new file mode 100644 index 00000000..e27ddc61 Binary files /dev/null and b/Assets/Resources/UI/Tower/parts/tower_base.png differ diff --git a/Assets/Resources/UI/Tower/parts/tower_base.png.meta b/Assets/Resources/UI/Tower/parts/tower_base.png.meta new file mode 100644 index 00000000..b71c7962 --- /dev/null +++ b/Assets/Resources/UI/Tower/parts/tower_base.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 8fe05055d61400049a0d8bb4ddce3e60 +TextureImporter: + internalIDToNameTable: + - first: + 213: -2314719218712912926 + second: tower_base_0 + 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: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + 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 + - serializedVersion: 4 + buildTarget: Android + 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: WebGL + 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: + - serializedVersion: 2 + name: tower_base_0 + rect: + serializedVersion: 2 + x: 79 + y: 6 + width: 880 + height: 852 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 2ebd8dd622770efd0800000000000000 + internalID: -2314719218712912926 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + tower_base_0: -2314719218712912926 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/parts/tower_floor.png b/Assets/Resources/UI/Tower/parts/tower_floor.png new file mode 100644 index 00000000..ee771622 Binary files /dev/null and b/Assets/Resources/UI/Tower/parts/tower_floor.png differ diff --git a/Assets/Resources/UI/Tower/parts/tower_floor.png.meta b/Assets/Resources/UI/Tower/parts/tower_floor.png.meta new file mode 100644 index 00000000..40176845 --- /dev/null +++ b/Assets/Resources/UI/Tower/parts/tower_floor.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 72a872bd0a0b02943bd1028c5fdc618b +TextureImporter: + internalIDToNameTable: + - first: + 213: 7030416954511714633 + second: tower_floor_0 + 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: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + 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 + - serializedVersion: 4 + buildTarget: Android + 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: WebGL + 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: + - serializedVersion: 2 + name: tower_floor_0 + rect: + serializedVersion: 2 + x: 204 + y: 0 + width: 630 + height: 286 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 949ed8ca8fe019160800000000000000 + internalID: 7030416954511714633 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + tower_floor_0: 7030416954511714633 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/parts/tower_top.png b/Assets/Resources/UI/Tower/parts/tower_top.png new file mode 100644 index 00000000..c8b90a7f Binary files /dev/null and b/Assets/Resources/UI/Tower/parts/tower_top.png differ diff --git a/Assets/Resources/UI/Tower/parts/tower_top.png.meta b/Assets/Resources/UI/Tower/parts/tower_top.png.meta new file mode 100644 index 00000000..3c5f1343 --- /dev/null +++ b/Assets/Resources/UI/Tower/parts/tower_top.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 213928f6e4e51d34cafa30c0750164fd +TextureImporter: + internalIDToNameTable: + - first: + 213: -4319797456347780479 + second: tower_top_0 + 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: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + 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 + - serializedVersion: 4 + buildTarget: Android + 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: WebGL + 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: + - serializedVersion: 2 + name: tower_top_0 + rect: + serializedVersion: 2 + x: 204 + y: 0 + width: 630 + height: 1001 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 18a21c8c91ffc04c0800000000000000 + internalID: -4319797456347780479 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + tower_top_0: -4319797456347780479 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/sky_band.png b/Assets/Resources/UI/Tower/sky_band.png new file mode 100644 index 00000000..94e65ca8 Binary files /dev/null and b/Assets/Resources/UI/Tower/sky_band.png differ diff --git a/Assets/Resources/UI/Tower/sky_band.png.meta b/Assets/Resources/UI/Tower/sky_band.png.meta new file mode 100644 index 00000000..60b67dec --- /dev/null +++ b/Assets/Resources/UI/Tower/sky_band.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 7f581c91d24bbfc4da2f2b4d20b55296 +TextureImporter: + internalIDToNameTable: + - first: + 213: 3843035563283399105 + second: sky_band_0 + 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: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + 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 + - serializedVersion: 4 + buildTarget: Android + 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: WebGL + 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: + - serializedVersion: 2 + name: sky_band_0 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1080 + height: 930 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 1c143b8cb74355530800000000000000 + internalID: 3843035563283399105 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + sky_band_0: 3843035563283399105 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/sky_low.png b/Assets/Resources/UI/Tower/sky_low.png new file mode 100644 index 00000000..ae956286 Binary files /dev/null and b/Assets/Resources/UI/Tower/sky_low.png differ diff --git a/Assets/Resources/UI/Tower/sky_low.png.meta b/Assets/Resources/UI/Tower/sky_low.png.meta new file mode 100644 index 00000000..04b431fd --- /dev/null +++ b/Assets/Resources/UI/Tower/sky_low.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: a436ba4d40d3d7643a93d48e476acce6 +TextureImporter: + internalIDToNameTable: + - first: + 213: -3094614997571843327 + second: sky_low_0 + 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: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + 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 + - serializedVersion: 4 + buildTarget: Android + 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: WebGL + 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: + - serializedVersion: 2 + name: sky_low_0 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1080 + height: 1920 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 10b42214e08bd05d0800000000000000 + internalID: -3094614997571843327 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + sky_low_0: -3094614997571843327 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/tower_marks.csv b/Assets/Resources/UI/Tower/tower_marks.csv new file mode 100644 index 00000000..b0638cb2 --- /dev/null +++ b/Assets/Resources/UI/Tower/tower_marks.csv @@ -0,0 +1,9 @@ +# 천하제일 탑 층 자리(아트 납품 · content_screens_2/tower/export_game.py) — 조각 png 의 px(왼쪽 위 0,0 · 아래로 +) · s_piece = top(꼭대기 · 위→아래 n_floor 100·99·98) · floor(반복 층 · 3~97층 · n_floor -1) · base(받침 · 2·1층) +# plaque = 현판 금테 바깥 사각(층 글자 자리) · door = 문 안 어두운 아치(도전 층 문 빛 자리 · 반복 층 문 아래끝은 조각 높이를 넘어 다음 조각 위까지) +s_piece,n_idx,n_floor,n_px0,n_py0,n_px1,n_py1,n_dx0,n_dy0,n_dx1,n_dy1 +top,0,100,450,296,588,342,482,352,556,449 +top,1,99,446,551,592,601,481,611,557,715 +top,2,98,442,824,597,874,478,879,561,993 +floor,0,-1,442,109,597,159,478,164,561,278 +base,0,2,434,114,604,166,473,170,565,286 +base,1,1,426,427,612,485,463,490,575,614 diff --git a/Assets/Resources/UI/Tower/tower_marks.csv.meta b/Assets/Resources/UI/Tower/tower_marks.csv.meta new file mode 100644 index 00000000..1c2856b7 --- /dev/null +++ b/Assets/Resources/UI/Tower/tower_marks.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 565a9096a1874c74b8fe27eb17dd1813 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/tower_screen.csv b/Assets/Resources/UI/Tower/tower_screen.csv new file mode 100644 index 00000000..45189517 --- /dev/null +++ b/Assets/Resources/UI/Tower/tower_screen.csv @@ -0,0 +1,39 @@ +# 천하제일 탑 화면 설정 표(PD 2026-11-18 「B안으로 진행해」 · 코드 = OutGame/Arena/ArenaTower) — 한 줄 = 키 · 값(| 로 여러 칸) +# 좌표 = 디자인 px(폭 1080 · 화면 폭에 맞춰 배율) · 값 출처 = 아트 시안 C:/ArtRnD/sprite_gen/ui_illust/samguk/content_screens_2/tower/mock/tower_screens.js(towerB · towerView · towerInfo) + screens.html CSS · 그림·자리를 새로 받으면 이 폴더 파일만 바꿔 끼운다 +# 탑 = 조각 3장(parts/tower_top · tower_floor × 95 · tower_base)을 위에서부터 쌓음 · 층 자리 = tower_marks.csv(납품 그대로) · 탑 가운데 x = tower_x · 탑 그림 1 px = 디자인 1 px(시안 B 배율 0.6 으로 내보냄) +s_key,s_value,s_note +texts,UI/Tower/tower_text,글자 표(UiText) +title_key,tower_title,제목 띠 글자 키 +subtitle_key,tower_subtitle,제목 띠 부제 키 +marks,UI/Tower/tower_marks,층 자리 표(납품) +parts,UI/Tower/parts,부품 폴더 +piece_top,tower_top,꼭대기 조각(100·99·98층) +piece_floor,tower_floor,반복 층(3~97층 = 95번) +piece_base,tower_base,받침 조각(2·1층) +floors,100|95,층 수|반복 층 수(꼭대기 3 + 반복 + 받침 2 = 층 수) +sky_low,UI/Tower/sky_low,땅 하늘(성벽 · 마당 · 1080×1920) +sky_band,UI/Tower/sky_band,위 하늘 띠(1080×930 · 위로 반복 · 번갈아 좌우 뒤집음) +sky,1760|0.5,땅 그림의 받침 아래끝 행|하늘 시차(탑이 1 움직일 때 하늘이 움직이는 비율 · 시안 0.32 → 0.5 = 10층에서 땅 성벽이 판 옆 틈에 보여서 · 게임 QA r1 M5) +tower_x,540,탑 가운데 x +focus,0.5245|200,도전 층 문 가운데 = 제목 띠 아래 ~ 정보 판 위 사이의 비율 자리|받침 아래끝이 정보 판 위끝보다 위로 올라가지 않는 한계(아래로 이만큼 · 274 = 시안 B 는 1층 문이 판에 30 px 가려 200 · 게임 캡처 2026-11-18) +scroll,0.135|2400,끌기 놓은 뒤 미끄러짐 감쇠(초)|최대 미끄러짐 속도(px/초) +plaque,0.98|2.6|7|6|10,현판 글자 크기 = 안쪽 높이 × |안쪽 폭 ÷ (둘 중 작은 값)|안쪽 좌우 여백|위 여백|아래 여백(아래 고리) · 여백 = 내보낸 조각 px(시안 12·10·16 × 0.6 · 게임 QA r1 M6 = 글자가 시안의 2/3) +plaque_col,#FFD23E|#A8998A|#D9B3A6|#2A120A|0.2,깬 층 · 도전 층 글자|못 깬 층 글자|못 깬 보스 층 글자|글자 테|테 굵기 = 글자 크기 × +plaque_lock,#140A06|0.32,못 깬 층 현판 어둡게(색|알파) +plaque_boss,#B23626|0.92|10,보스 층(10층마다) 현판 바탕(색|알파|몇 층마다) +glow,door_glow|door_halo|2.2|1.6|0.55|1.1|0.9|0.2|0.85,문 빛|번짐|큰 번짐 폭·높이(문 ×)|큰 번짐 가운데 높이(문 위끝 + 문 높이 ×)|작은 번짐 폭·높이(문 ×)|작은 번짐 위끝(문 높이 ×)|번짐 알파 +glow_pulse,1.6|0.82|1.0,문 빛 숨(초 · 알파 낮음 · 높음) +arrow,arrow|0.56|42|0.72|6|1.2,화살표 그림|크기 = 문 폭 ×|최소|문 끝에서 떨어짐(크기 ×)|흔들림 px|흔들림 초 +panel,20|16|1040|508|#1D2140|0.97|18|26,정보 판 왼쪽|하단 탭 위 틈|폭|높이|바탕색|알파|위 여백|좌우 여백 +right,330|6,오른쪽 열 폭|위 여백 +title_font,76|#FFD23E,층 글자 크기|색 +boss_tag,32|20|#E0483C|12,보스 층 칩 높이|글자|색|층 글자와 틈 +line_font,23|#CFD5EA|2,편성 이름 줄 글자|색|위 틈 +sec_font,27|#FFD23E|10|12,소제목 글자|색|위 틈|아래 틈 +enemy,88|20|5|20|#CFD5EA|24|#C8402F|#5A4A6A|1.72|-0.36|-0.06,적 얼굴 지름|칸 사이|최대 칸 수|이름 글자|색|×수 글자|보스 바탕|병사 바탕|그림 폭 배율|그림 x|그림 y(얼굴 원 지름 ×) +mult,42|23|10|8,배율 칩 높이|글자|칩 사이|위 틈 +reward,76|20,보상 칸 크기|칸 사이 +reward_icons,cur_gem|cur_blueprint|chest_gold,보옥|도면|10층 상자(테마 아이콘) +best,44|22,최고 층 칩 높이|글자 +ticket,58|24|38|112|21|16|8,입장권 칩 높이|글자|아이콘|광고 버튼 폭|광고 글자|광고 횟수 글자|칩·버튼 틈 +go,104|44|24|30|14,도전 버튼 높이|글자|입장권 줄 글자|아이콘|위 틈 diff --git a/Assets/Resources/UI/Tower/tower_screen.csv.meta b/Assets/Resources/UI/Tower/tower_screen.csv.meta new file mode 100644 index 00000000..92346110 --- /dev/null +++ b/Assets/Resources/UI/Tower/tower_screen.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2a59afd65fa086f41a10d59852f82b07 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Tower/tower_text.csv b/Assets/Resources/UI/Tower/tower_text.csv new file mode 100644 index 00000000..d77831e8 --- /dev/null +++ b/Assets/Resources/UI/Tower/tower_text.csv @@ -0,0 +1,28 @@ +# 천하제일 탑 화면 글자 표(PD 2026-11-18 「B안으로 진행해」 · 투기장 league_text 와 같은 방식 · 한글 하드코딩 금지) — 바뀌는 값 = {0} {1} 자리 +# 언어 칸 = ko(아트 시안 tower_screens.js 문구) · en 이하 = 번역 칸(비움) +s_key,ko,en,note +tower_title,천하제일 탑,,위 제목 바 +tower_subtitle,100층 · 10층마다 보스,,위 제목 바 부제 +tower_floor,{0}층,,현판 · 정보 판 층 글자 +tower_boss_tag,보스 층,,정보 판 층 글자 옆 칩 +tower_template,{0} 「{1}」 편성,,적 편성 출처(스테이지 번호 · 부제) +tower_enemies,적 편성,,소제목 +tower_hp,적 체력 ×{0},,배율 칩 +tower_atk,공격 ×{0},,배율 칩 +tower_reward,첫 클리어 보상,,소제목 +tower_best,최고 {0}층 / {1}층,,오른쪽 열 칩 +tower_best_rank,최고 {0}층 / {1}층 · 순위 표,,오른쪽 열 칩(서버 모드 · 누르면 순위 표) +tower_ticket,입장권 {0},,입장권 칩 숫자 +tower_ticket_max,/ {0},,입장권 칩 하루 채움 +tower_ad,광고 +{0},,광고 버튼 +tower_ad_count,{0} / 1,,광고 버튼 오늘 쓴 횟수 +tower_ad_toast,입장권 +{0} (광고 SDK 미연동 · 시험 지급),,광고 누름 알림 +tower_go,도전,,도전 버튼 +tower_go_cost,입장권 1장,,도전 버튼 아래 줄 +tower_no_stage,템플릿 스테이지 없음,,도전 불가 이유(표 오류) +tower_cls_infantry,보병,,적 칸 이름(병사) +tower_cls_spear,창병,, +tower_cls_cavalry,기병,, +tower_cls_archer,궁병,, +tower_cls_strategist,책사,, +tower_general,적장,,이름 없는 무장 diff --git a/Assets/Resources/UI/Tower/tower_text.csv.meta b/Assets/Resources/UI/Tower/tower_text.csv.meta new file mode 100644 index 00000000..674f7517 --- /dev/null +++ b/Assets/Resources/UI/Tower/tower_text.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0a3e8a9b2ae73b7489e506fc957a4e09 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Editor/UnitArtImporter.cs b/Assets/Scripts/Editor/UnitArtImporter.cs index cd074464..879ccbaa 100644 --- a/Assets/Scripts/Editor/UnitArtImporter.cs +++ b/Assets/Scripts/Editor/UnitArtImporter.cs @@ -24,6 +24,8 @@ namespace TKS.EditorTools public const string UiLeagueRoot = "Assets/Resources/UI/League/"; /// 연의 전기 화면(PD 2026-11-18 「연의 전기 통과」) — 같은 규칙(바로 아래 = 탭 배경 · parts/ = 두루마리 · 상세 두루마리 9 분할 = import.json). public const string UiScenarioRoot = "Assets/Resources/UI/Scenario/"; + /// 천하제일 탑 화면(PD 2026-11-18 「B안으로 진행해」) — 같은 규칙(바로 아래 = 하늘 2장 · parts/ = 탑 조각 3(max 2048 = import.json) · 문 빛 · 화살표). + public const string UiTowerRoot = "Assets/Resources/UI/Tower/"; /// Android 유닛 프레임 긴 변 상한(Fable 검토 2026-11-12 · 원화 PNG 는 그대로 · 빌드 때만 축소). public const int AndroidUnitMaxSize = 512; /// Android 유닛 프레임 압축(ASTC 5×5 시작값 · 출시 전 4×4·6×6 과 육안 비교로 확정). @@ -87,6 +89,11 @@ namespace TKS.EditorTools PreprocessUiScene(path, UiScenarioRoot); return; } + if (path.StartsWith(UiTowerRoot)) + { + PreprocessUiScene(path, UiTowerRoot); + return; + } if (!path.StartsWith(Root)) return; var ti = (TextureImporter)assetImporter; ti.textureType = TextureImporterType.Sprite; @@ -234,7 +241,7 @@ namespace TKS.EditorTools [MenuItem("TKS/Reimport Unit Art (유닛 아트 재임포트)")] public static void ReimportAll() { - foreach (var root in new[] { Root, BoardRoot, ChapterMapRoot, UiSceneRoot, UiLeagueRoot, UiScenarioRoot }) + foreach (var root in new[] { Root, BoardRoot, ChapterMapRoot, UiSceneRoot, UiLeagueRoot, UiScenarioRoot, UiTowerRoot }) { string dir = root.TrimEnd('/'); if (!AssetDatabase.IsValidFolder(dir)) diff --git a/Assets/Scripts/OutGame/Arena/ArenaScreen.League.cs b/Assets/Scripts/OutGame/Arena/ArenaScreen.League.cs index 6387f1b2..828d410d 100644 --- a/Assets/Scripts/OutGame/Arena/ArenaScreen.League.cs +++ b/Assets/Scripts/OutGame/Arena/ArenaScreen.League.cs @@ -65,6 +65,11 @@ namespace TKS.OutGame tk = scenario.S_("title_key"); sk = scenario.S_("subtitle_key"); } + else if (page == 1 && TowerVisible) + { + tk = tower.S_("title_key"); + sk = tower.S_("subtitle_key"); + } bool on = tk != null; string t = on ? UiText.T(tk) : headerTitle0; string sub = on ? UiText.T(sk) : headerSub0; diff --git a/Assets/Scripts/OutGame/Arena/ArenaScreen.Tower.cs b/Assets/Scripts/OutGame/Arena/ArenaScreen.Tower.cs new file mode 100644 index 00000000..5676e1fe --- /dev/null +++ b/Assets/Scripts/OutGame/Arena/ArenaScreen.Tower.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace TKS.OutGame +{ + /// + /// 천하제일 탑 화면(컨텐츠 · 연무장 page 1) — 표 Resources/UI/Tower 가 있으면 확정 아트 화면(ArenaTower · PD 2026-11-18 「B안으로 진행해」 · 시안 mock_t_b*.png) · + /// 표·그림이 없으면 예전 더미 UI(ArenaScreen.BuildTower). + /// + public partial class ArenaScreen + { + ArenaTower tower; // 확정 아트 화면(표 Resources/UI/Tower · 없으면 null = 더미 UI) + RectTransform towerSlot; + + /// 천하제일 탑 아트 화면(없으면 null · 테스트). + public ArenaTower Tower + { + get { return tower; } + } + + /// 지금 탑 아트 화면이 보이는가(테스트). + public bool TowerVisible + { + get { return tower != null && tower.Built && towerSlot != null && towerSlot.gameObject.activeInHierarchy; } + } + + /// Build 에서 제목 띠보다 먼저(화면 전체 · 제목 띠 · 본문 뒤) — 표만 읽음(그림은 처음 열 때). + void LoadTowerView() + { + tower = ArenaTower.Load(this); + if (tower == null) return; + towerSlot = UiKit.Fill("Tower", Rt); + towerSlot.gameObject.SetActive(false); + } + + /// 탑 쪽 = 아트 화면을 켜고 도전 층에 맞춰 정보 판을 다시 채움 · 표 없음 · 그림 없음 = false(호출 쪽 = 더미 UI). + bool ShowTowerView() + { + if (tower == null || towerSlot == null) return false; + towerSlot.gameObject.SetActive(true); + if (tower.Show(towerSlot)) return true; + towerSlot.gameObject.SetActive(false); // 그림 없음 = 더미 UI(다시 시도하지 않음) + tower = null; + return false; + } + } +} diff --git a/Assets/Scripts/OutGame/Arena/ArenaScreen.Tower.cs.meta b/Assets/Scripts/OutGame/Arena/ArenaScreen.Tower.cs.meta new file mode 100644 index 00000000..1ee0e063 --- /dev/null +++ b/Assets/Scripts/OutGame/Arena/ArenaScreen.Tower.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 173a0aebb6de57f4a816b0db7b0516bc \ No newline at end of file diff --git a/Assets/Scripts/OutGame/Arena/ArenaScreen.cs b/Assets/Scripts/OutGame/Arena/ArenaScreen.cs index 2977d671..c12a9aa9 100644 --- a/Assets/Scripts/OutGame/Arena/ArenaScreen.cs +++ b/Assets/Scripts/OutGame/Arena/ArenaScreen.cs @@ -44,6 +44,7 @@ namespace TKS.OutGame if (UISkin.On) UiKit.Paint(UiKit.Fill("ListBg", Rt), UiKit.Col("list_bg", UiKit.Bg), false); // 목록형 바탕(Fable §5-3) LoadLeagueView(); // 투기장 아트 화면(PD 2026-11-18 · 표 Resources/UI/League) — 제목 띠 뒤 · 표만 읽음 LoadScenarioView(); // 연의 전기 아트 화면(PD 2026-11-18 · 표 Resources/UI/Scenario) + LoadTowerView(); // 천하제일 탑 아트 화면(PD 2026-11-18 「B안으로 진행해」 · 표 Resources/UI/Tower) hub = ArenaHub.Load(this); // 표만 읽음(그림·유닛은 처음 열 때) RectTransform headerBand; if (hub != null) @@ -116,6 +117,7 @@ namespace TKS.OutGame if (hubSlot != null) hubSlot.gameObject.SetActive(hubOn); if (leagueSlot != null && page != 3) leagueSlot.gameObject.SetActive(false); if (scenarioSlot != null && page != ScenarioPage) scenarioSlot.gameObject.SetActive(false); + if (towerSlot != null && page != 1) towerSlot.gameObject.SetActive(false); if (headerSub != null) headerSub.gameObject.SetActive(page == 0); if (hubOn && !hub.Show(hubSlot)) { @@ -131,7 +133,9 @@ namespace TKS.OutGame BuildCards(); ScenarioEntryButton(); // 연의 전기 입구(더미 · 2026-11-18) break; - case 1: BuildTower(); break; + case 1: // 천하제일 탑 — 아트 화면(PD 2026-11-18 「B안으로 진행해」) · 표·그림이 없으면 더미 UI + if (!ShowTowerView()) BuildTower(); + break; case 2: BuildSupply(); break; // 보급전(컨텐츠 모드 ① · 옛 일일 던전 자리 · 2026-11-17) case 3: // 등급 투기장(컨텐츠 모드 ④ · 교대 조작 · 2026-11-18) — 아트 화면(PD 2026-11-18 「투기장 UI 완료」) · 표·그림이 없거나 잠김 = 더미 UI if (!ShowLeagueView()) BuildLeague(); diff --git a/Assets/Scripts/OutGame/Arena/ArenaTower.cs b/Assets/Scripts/OutGame/Arena/ArenaTower.cs new file mode 100644 index 00000000..91cccb46 --- /dev/null +++ b/Assets/Scripts/OutGame/Arena/ArenaTower.cs @@ -0,0 +1,913 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using UnityEngine; +using UnityEngine.EventSystems; +using UnityEngine.UI; + +namespace TKS.OutGame +{ + /// + /// 천하제일 탑 화면(PD 2026-11-18 「B안으로 진행해」 · 아트 시안 content_screens_2/tower/final/mock/mock_t_b*.png · Fable QA r1 · r2 PASS) — + /// 하늘(땅 그림 + 위로 반복 띠 · 시차) 위에 100층 탑(꼭대기 조각 + 반복 층 95 + 받침 조각)을 쌓고, 층마다 현판 글자(깬 층 금색 · 못 깬 층 회갈색 + 어둡게 · 10층마다 붉은 보스 현판) · + /// 도전할 층 = 문 빛 + 번짐(덧셈) + 금 화살표 · 아래 정보 판(층 · 적 편성 얼굴 · 배율 · 첫 클리어 보상 · 최고 층 · 입장권 + 광고 · 도전). + /// 끌어서 위아래 층 구경(보이는 조각만 그림) · 처음 = 도전할 층이 화면 위쪽 가운데. + /// 기능 = 예전 더미 화면(ArenaScreen.BuildTower)과 같음: 입장권 · 광고 · 도전(StartMode) · 순위 표(서버 모드 · 최고 층 칩). + /// 표(Resources/UI/Tower · C45): 설정 tower_screen(키 · 값) · 층 자리 tower_marks(납품 그대로) · 글자 tower_text(UiText) · 부품 parts/(탑 조각 3 = 단독 · 작은 부품 = 아틀라스 UI_Tower) · 하늘 2장. + /// 층(P41): 화면(Event) → Back(하늘 · 탑 · 현판 글자 = 끌 때만 바뀜 · Frame) · Fx(문 빛 숨 · 화살표 흔들림 · Frame) · Input(끌기 받는 칸 · Event + 레이캐스터) · Chrome(재화 바 뒤 띠 · Static) · Panel(정보 판 · Event + 레이캐스터). + /// + public class ArenaTower + { + public const string Table = "UI/Tower/tower_screen"; + + /// 층 자리(조각 png px · 왼쪽 위 0,0 · 아래로 +). + public struct Mark + { + public int floor; + public Rect plaque; + public Rect door; + } + + readonly ArenaScreen screen; + readonly Dictionary kv = new Dictionary(); + readonly List topMarks = new List(); + readonly List baseMarks = new List(); + readonly Dictionary texts = new Dictionary(); + Mark floorMark; + Sprite spTop, spFloor, spBase, spSkyLow, spSkyBand, spGlow, spHalo, spArrow; + float topH, floorH, baseH, towerW, totalH; + int floors, tiles; + + public RectTransform View { get; private set; } + public RectTransform Back { get; private set; } + public RectTransform Fx { get; private set; } + public RectTransform InputLayer { get; private set; } + public RectTransform Chrome { get; private set; } + public RectTransform Panel { get; private set; } + public bool Built { get; private set; } + + /// 지금 화면 맨 위 = 탑 좌표 y(디자인 px · 탑 꼭대기 조각 위끝 = 0). + public float Cam { get; private set; } + /// 도전할 층(빛 · 화살표) · 정보 판 층. + public int Current { get; private set; } + /// 보이는 탑 조각 · 현판 글자 수(테스트). + public int VisiblePieces { get; private set; } + public int VisiblePlaques { get; private set; } + /// 정보 판 적 칸 수(테스트). + public int EnemyCards { get; private set; } + + ArenaTower(ArenaScreen s) + { + screen = s; + } + + OutGameSession S + { + get { return screen.S; } + } + + // ---------- 표 ---------- + + /// 설정 표 · 층 자리 표 · 글자 표를 읽는다(그림은 처음 열 때) · 표가 없으면 null(호출 쪽 = 예전 더미 화면). + public static ArenaTower Load(ArenaScreen s) + { + var rows = UiText.Rows(Table); + if (rows == null) return null; + var tw = new ArenaTower(s); + foreach (var r in rows) + { + string k, v; + if (!r.TryGetValue("s_key", out k) || k.Length == 0) continue; + r.TryGetValue("s_value", out v); + tw.kv[k] = v ?? ""; + } + UiText.Use(tw.S_("texts")); + if (!tw.LoadMarks() || !UiText.Has(tw.S_("title_key"))) return null; + return tw; + } + + public string S_(string key, string def = "") + { + string v; + return kv.TryGetValue(key, out v) && v.Length > 0 ? v : def; + } + + string[] L(string key) + { + return S_(key).Split('|'); + } + + static float F(string v, float def = 0f) + { + float f; + return v != null && float.TryParse(v.Trim(), NumberStyles.Float, CultureInfo.InvariantCulture, out f) ? f : def; + } + + static float At(string[] a, int i, float def = 0f) + { + return a != null && i < a.Length && a[i].Trim().Length > 0 ? F(a[i], def) : def; + } + + static string Str(string[] a, int i) + { + return a != null && i < a.Length ? a[i].Trim() : ""; + } + + static Color Col(string[] a, int i, Color def) + { + Color c; + return a != null && i < a.Length && ColorUtility.TryParseHtmlString(a[i].Trim(), out c) ? c : def; + } + + static string N(float v, string fmt = "0.00") + { + return v.ToString(fmt, CultureInfo.InvariantCulture); + } + + bool LoadMarks() + { + var rows = UiText.Rows(S_("marks")); + if (rows == null) return false; + bool hasFloor = false; + var tops = new SortedDictionary(); + var bases = new SortedDictionary(); + foreach (var r in rows) + { + string piece; + if (!r.TryGetValue("s_piece", out piece) || piece.Length == 0) continue; + Func g = c => + { + string v; + return r.TryGetValue(c, out v) ? F(v) : 0f; + }; + var m = new Mark + { + floor = (int)g("n_floor"), + plaque = Rect.MinMaxRect(g("n_px0"), g("n_py0"), g("n_px1"), g("n_py1")), + door = Rect.MinMaxRect(g("n_dx0"), g("n_dy0"), g("n_dx1"), g("n_dy1")), + }; + int idx = (int)g("n_idx"); + if (piece == "top") tops[idx] = m; + else if (piece == "base") bases[idx] = m; + else if (piece == "floor") + { + floorMark = m; + hasFloor = true; + } + } + topMarks.AddRange(tops.Values); + baseMarks.AddRange(bases.Values); + var fl = L("floors"); + floors = (int)At(fl, 0, 100f); + tiles = floors - topMarks.Count - baseMarks.Count; + return hasFloor && topMarks.Count > 0 && baseMarks.Count > 0 && tiles > 0; + } + + // ---------- 층 좌표 ---------- + + /// 층 n 의 조각 위끝(탑 좌표) · 현판 · 문(조각 px). + public Mark MarkOf(int n, out float y0) + { + int nt = topMarks.Count, nb = baseMarks.Count; + if (n > floors - nt) + { + y0 = 0f; + return topMarks[Mathf.Clamp(floors - n, 0, nt - 1)]; + } + if (n > nb) + { + y0 = topH + (floors - nt - n) * floorH; + return floorMark; + } + y0 = topH + tiles * floorH; + return baseMarks[Mathf.Clamp(nb - n, 0, nb - 1)]; + } + + /// 층 n 의 문 가운데(탑 좌표 y). + public float DoorMid(int n) + { + float y0; + var m = MarkOf(n, out y0); + return y0 + m.door.center.y; + } + + // ---------- 만들기 ---------- + + /// slot(화면 전체 · 제목 띠 뒤)에 처음 한 번 층을 만들고 도전 층에 맞춘 뒤 정보 판을 다시 채운다 · 그림이 없으면 false(호출 쪽 = 예전 더미 화면). + public bool Show(RectTransform slot) + { + if (!Built && !Build(slot)) return false; + Current = ArenaRules.TowerNext(S.Db, S.Save); + FocusCurrent(); + BuildPanel(); + return true; + } + + Sprite Part(string name) + { + return name.Length > 0 ? Resources.Load(S_("parts") + "/" + name) : null; + } + + bool Build(RectTransform slot) + { + spTop = Part(S_("piece_top")); + spFloor = Part(S_("piece_floor")); + spBase = Part(S_("piece_base")); + spSkyLow = Resources.Load(S_("sky_low")); + spSkyBand = Resources.Load(S_("sky_band")); + if (spTop == null || spFloor == null || spBase == null || spSkyLow == null || spSkyBand == null) + { + Debug.LogWarning("[TKS] 천하제일 탑 그림 없음: " + S_("parts") + " · " + S_("sky_low")); + return false; + } + var gl = L("glow"); + spGlow = Part(Str(gl, 0)); + spHalo = Part(Str(gl, 1)); + spArrow = Part(Str(L("arrow"), 0)); + topH = spTop.rect.height; + floorH = spFloor.rect.height; + baseH = spBase.rect.height; + towerW = spFloor.rect.width; + totalH = topH + tiles * floorH + baseH; + + View = slot; + Back = UiLayer.Group("Back", View, UiRate.Frame); // 끌 때만 바뀜(스크롤 내용 = Frame) + Fx = UiLayer.Group("Fx", View, UiRate.Frame); // 문 빛 숨 · 화살표 흔들림(매 프레임) + InputLayer = UiLayer.Group("Input", View, UiRate.Event, true); + Chrome = UiLayer.Group("Chrome", View, UiRate.Static); + Panel = UiLayer.Group("Panel", View, UiRate.Event, true); + skyRoot = UiKit.Fill("Sky", Back); + pieceRoot = UiKit.Fill("Pieces", Back); + overRoot = UiKit.Fill("Plates", Back); + textRoot = UiKit.Fill("Floors", Back); + BuildFx(); + var hit = UiKit.Fill("Drag", InputLayer); + var hi = hit.gameObject.AddComponent(); + hi.color = new Color(0f, 0f, 0f, 0f); + hi.canvasRenderer.cullTransparentMesh = true; // 안 그리고 누름만 받음 + drag = hit.gameObject.AddComponent(); + drag.owner = this; + UiKit.Paint(UiKit.TopBand("TopBand", Chrome, 0f, OutGameRoot.TopBarH), UiKit.Col("band_top", UiKit.Bg), false); // 재화 바 뒤 띠(시안 .top) + Built = true; + return true; + } + + RectTransform skyRoot, pieceRoot, overRoot, textRoot; + readonly List skyPool = new List(); + readonly List piecePool = new List(); + readonly List overPool = new List(); + readonly List textPool = new List(); + Image glowImg, haloBig, haloSmall, arrowL, arrowR; + TowerDrag drag; + + // 화면 크기(캔버스 단위) · 디자인 배율 z(폭 1080 기준 · 세로가 모자란 태블릿 = 1920 기준) + float Wv, Hv, Z, Ytop, Ypanel; + + void Measure() + { + var r = View.rect; + Wv = r.width; + Hv = r.height; + Z = Mathf.Min(Wv / 1080f, Hv / 1920f); + if (Z <= 0f) Z = 1f; + var pn = L("panel"); + Ytop = OutGameRoot.TopBarH + OutGameRoot.HeaderH; + Ypanel = Hv - OutGameRoot.TabBarH - At(pn, 1, 16f) * Z - At(pn, 3, 508f) * Z; + } + + float CamMin + { + get { return -(Ytop + 80f * Z) / Z; } // 꼭대기 구슬이 제목 띠 아래 80 px 까지 + } + + float CamMax + { + get { return totalH - (Ypanel + At(L("focus"), 1, 200f) * Z) / Z; } // 받침 아래끝이 정보 판 위끝 + 표 focus[1] 보다 위로 오지 않게 + } + + /// 도전할 층 문 가운데 = 제목 띠 아래 ~ 정보 판 위 사이 focus 비율 자리. + public void FocusCurrent() + { + Measure(); + float yf = Ytop + (Ypanel - Ytop) * At(L("focus"), 0, 0.5245f); + if (drag != null) drag.Stop(); + SetCam(DoorMid(Current) - yf / Z, true); + } + + internal void Resized() + { + if (!Built || !View.gameObject.activeInHierarchy) return; + FocusCurrent(); + BuildPanel(); + } + + /// 끌기 · 미끄러짐 · 맞춤 → 범위 안으로 자르고 바뀌었으면 다시 놓음. + public bool SetCam(float cam, bool force = false) + { + Measure(); + float c = Mathf.Clamp(cam, CamMin, Mathf.Max(CamMin, CamMax)); + if (!force && Mathf.Abs(c - Cam) < 0.01f) return false; + Cam = c; + Layout(); + return c != cam; + } + + static void Place(RectTransform rt, float x, float y, float w, float h) + { + rt.anchorMin = rt.anchorMax = new Vector2(0f, 1f); + rt.pivot = new Vector2(0f, 1f); + var p = new Vector2(x, -y); + var s = new Vector2(w, h); + if (rt.anchoredPosition != p) rt.anchoredPosition = p; + if (rt.sizeDelta != s) rt.sizeDelta = s; + } + + Image Pooled(List pool, int i, RectTransform parent, string name) + { + while (pool.Count <= i) + { + var rt = UiKit.Rect(name + pool.Count, parent, new Vector2(0f, 1f), new Vector2(0f, 1f), Vector2.zero, Vector2.one); + var im = rt.gameObject.AddComponent(); + im.raycastTarget = false; + pool.Add(im); + } + var img = pool[i]; + if (!img.gameObject.activeSelf) img.gameObject.SetActive(true); + return img; + } + + static void HideFrom(List pool, int n) where T : Component + { + for (int i = n; i < pool.Count; i++) + if (pool[i].gameObject.activeSelf) pool[i].gameObject.SetActive(false); + } + + static void SetSprite(Image im, Sprite sp, bool flip) + { + if (im.sprite != sp) im.sprite = sp; + var s = new Vector3(flip ? -1f : 1f, 1f, 1f); + if (im.rectTransform.localScale != s) im.rectTransform.localScale = s; + } + + /// 보이는 하늘 · 조각 · 현판만 놓는다(끌 때마다 · 값이 같으면 쓰지 않음). + void Layout() + { + float tx = Wv * 0.5f + (F(S_("tower_x"), 540f) - 540f) * Z; + float x0 = tx - towerW * 0.5f * Z; + Func Y = yw => (yw - Cam) * Z; + + // 하늘: 땅 그림의 받침 행 = 받침 아래끝(시차) · 그 위로 띠 + var sk = L("sky"); + float gMin = Ypanel + At(L("focus"), 1, 200f) * Z; + float gs = Y(totalH); + float bgG = gMin + (gs - gMin) * At(sk, 1, 0.5f); + float ks = Wv / spSkyLow.rect.width; // 하늘 = 화면 폭 덮음 + float lowTop = bgG - At(sk, 0, 1760f) * ks; + int si = 0; + float lowH = spSkyLow.rect.height * ks; + if (lowTop < Hv && lowTop + lowH > 0f) + { + var im = Pooled(skyPool, si++, skyRoot, "Sky"); + SetSprite(im, spSkyLow, false); + Place(im.rectTransform, 0f, lowTop, Wv, lowH + 1f); + } + float bh = spSkyBand.rect.height * ks; + for (int i = 1; lowTop - (i - 1) * bh > 0f; i++) + { + float y = lowTop - i * bh; + if (y > Hv) continue; + var im = Pooled(skyPool, si++, skyRoot, "Sky"); + SetSprite(im, spSkyBand, i % 2 == 1); + im.rectTransform.pivot = new Vector2(0.5f, 1f); + var p = new Vector2(Wv * 0.5f, -y); + im.rectTransform.anchorMin = im.rectTransform.anchorMax = new Vector2(0f, 1f); + if (im.rectTransform.anchoredPosition != p) im.rectTransform.anchoredPosition = p; + var sz = new Vector2(Wv, bh + 1f); + if (im.rectTransform.sizeDelta != sz) im.rectTransform.sizeDelta = sz; + } + HideFrom(skyPool, si); + + // 탑 조각(보이는 것만) + int pi = 0; + float vt = Cam, vb = Cam + Hv / Z; + Action piece = (sp, yw, h) => + { + if (yw + h < vt || yw > vb) return; + var im = Pooled(piecePool, pi++, pieceRoot, "Piece"); + SetSprite(im, sp, false); + Place(im.rectTransform, x0, Y(yw), towerW * Z, h * Z + 0.5f); + }; + piece(spTop, 0f, topH); + int t0 = Mathf.Max(0, Mathf.FloorToInt((vt - topH) / floorH) - 1); + int t1 = Mathf.Min(tiles - 1, Mathf.CeilToInt((vb - topH) / floorH) + 1); + for (int i = t0; i <= t1; i++) piece(spFloor, topH + i * floorH, floorH); + piece(spBase, topH + tiles * floorH, baseH); + HideFrom(piecePool, pi); + VisiblePieces = pi; + + // 현판(층 글자 · 보스 바탕 · 못 깬 층 어둡게) + var pl = L("plaque"); + var pc = L("plaque_col"); + var lk = L("plaque_lock"); + var bs = L("plaque_boss"); + int best = S.Save.arena.towerFloor; + int bossEvery = Mathf.Max(1, (int)At(bs, 2, 10f)); + int oi = 0, ti = 0; + for (int n = 1; n <= floors; n++) + { + float y0; + var m = MarkOf(n, out y0); + if (y0 + m.plaque.yMax < vt || y0 + m.plaque.yMin > vb) continue; + float ix0 = x0 + (m.plaque.xMin + At(pl, 2, 7f)) * Z, ix1 = x0 + (m.plaque.xMax - At(pl, 2, 7f)) * Z; + float iy0 = Y(y0 + m.plaque.yMin + At(pl, 3, 6f)), iy1 = Y(y0 + m.plaque.yMax - At(pl, 4, 10f)); + bool boss = n % bossEvery == 0; + bool done = n <= best, cur = n == Current && best < floors; + bool lockd = !done && !cur; + if (boss) + { + var bi = Pooled(overPool, oi++, overRoot, "Plate"); + SetSprite(bi, null, false); + var c = Col(bs, 0, new Color(0.7f, 0.21f, 0.15f)); + c.a = At(bs, 1, 0.92f); + if (bi.color != c) bi.color = c; + Place(bi.rectTransform, ix0, iy0, ix1 - ix0, iy1 - iy0); + } + if (lockd) + { + var li = Pooled(overPool, oi++, overRoot, "Plate"); + SetSprite(li, null, false); + var c = Col(lk, 0, Color.black); + c.a = At(lk, 1, 0.32f); + if (li.color != c) li.color = c; + Place(li.rectTransform, ix0, iy0, ix1 - ix0, iy1 - iy0); + } + var t = PooledText(ti++); + int fs = Mathf.Max(8, Mathf.RoundToInt(Mathf.Min((iy1 - iy0) * At(pl, 0, 0.98f), (ix1 - ix0) / At(pl, 1, 2.6f)))); + var col = lockd ? (boss ? Col(pc, 2, Color.white) : Col(pc, 1, Color.gray)) : Col(pc, 0, Color.yellow); + string s = UiText.F("tower_floor", new[] { n.ToString(CultureInfo.InvariantCulture) }); + if (t.text != s) t.text = s; + if (t.fontSize != fs) t.fontSize = fs; + t.color = col; + var ol = t.GetComponent(); + if (ol != null) + { + var d = new Vector2(fs * At(pc, 4, 0.2f) * 0.5f, -fs * At(pc, 4, 0.2f) * 0.5f); + if (ol.effectDistance != d) ol.effectDistance = d; + } + Place(t.rectTransform, ix0, iy0, ix1 - ix0, iy1 - iy0); + } + HideFrom(overPool, oi); + HideFrom(textPool, ti); + VisiblePlaques = ti; + PlaceFx(x0); + } + + Text PooledText(int i) + { + while (textPool.Count <= i) + { + var t = UiKit.Title(UiKit.Label(textRoot, "", 24, Color.white, TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), Vector2.zero, Vector2.one)); + t.name = "Floor" + textPool.Count; + t.horizontalOverflow = HorizontalWrapMode.Overflow; + t.verticalOverflow = VerticalWrapMode.Overflow; + t.raycastTarget = false; + var ol = t.gameObject.AddComponent(); + ol.effectColor = Col(L("plaque_col"), 3, Color.black); + textPool.Add(t); + } + var tx = textPool[i]; + if (!tx.gameObject.activeSelf) tx.gameObject.SetActive(true); + return tx; + } + + // ---------- 도전 층 문 빛 · 화살표 ---------- + + void BuildFx() + { + Func mk = (name, sp) => + { + var rt = UiKit.Rect(name, Fx, new Vector2(0f, 1f), new Vector2(0f, 1f), Vector2.zero, Vector2.one); + var im = rt.gameObject.AddComponent(); + im.sprite = sp; + im.raycastTarget = false; + return im; + }; + var add = GachaCutscene.AddMat; // 뽑기 연출 덧셈 재질(시안 plus-lighter) · 없으면 보통 섞기 + haloBig = mk("HaloBig", spHalo); + glowImg = mk("Glow", spGlow); + haloSmall = mk("HaloSmall", spHalo); + if (add != null) haloBig.material = haloSmall.material = add; + arrowL = mk("ArrowL", spArrow); + arrowR = mk("ArrowR", spArrow); + arrowR.rectTransform.localScale = new Vector3(-1f, 1f, 1f); + fxDoor = Rect.zero; + } + + Rect fxDoor; // 도전 층 문(화면 캔버스 px · 비면 숨김) + float fxArrow; + + void PlaceFx(float x0) + { + bool on = Current >= 1 && S.Save.arena.towerFloor < floors; + Rect d = Rect.zero; + if (on) + { + float y0; + var m = MarkOf(Current, out y0); + d = Rect.MinMaxRect(x0 + m.door.xMin * Z, (y0 + m.door.yMin - Cam) * Z, x0 + m.door.xMax * Z, (y0 + m.door.yMax - Cam) * Z); + if (d.yMax < 0f || d.yMin > Hv) on = false; + } + if (Fx.gameObject.activeSelf != on) Fx.gameObject.SetActive(on); + if (!on) return; + fxDoor = d; + var gl = L("glow"); + float dw = d.width, dh = d.height, cx = d.center.x; + float bw = dw * At(gl, 2, 2.2f), bhh = dh * At(gl, 3, 1.6f); + Place(haloBig.rectTransform, cx - bw * 0.5f, d.yMin + dh * At(gl, 4, 0.55f) - bhh * 0.5f, bw, bhh); + Place(glowImg.rectTransform, d.xMin, d.yMin, dw, dh); + float sw = dw * At(gl, 5, 1.1f), sh = dh * At(gl, 6, 0.9f); + Place(haloSmall.rectTransform, cx - sw * 0.5f, d.yMin + dh * At(gl, 7, 0.2f), sw, sh); + var ar = L("arrow"); + float az = Mathf.Max(At(ar, 2, 42f) * Z, dw * At(ar, 1, 0.56f)); + fxArrow = az; + float ah = az * (spArrow != null ? spArrow.rect.height / Mathf.Max(1f, spArrow.rect.width) : 1.17f); + float ay = d.center.y - ah * 0.5f; + arrowL.rectTransform.pivot = new Vector2(0.5f, 0f); + arrowR.rectTransform.pivot = new Vector2(0.5f, 0f); + PlaceArrow(arrowL, d.xMin - az * At(ar, 3, 0.72f), ay, az, ah); + PlaceArrow(arrowR, d.xMax + az * At(ar, 3, 0.72f), ay, az, ah); + } + + static void PlaceArrow(Image im, float cx, float y, float w, float h) + { + var rt = im.rectTransform; + rt.anchorMin = rt.anchorMax = new Vector2(0f, 1f); + rt.pivot = new Vector2(0.5f, 0.5f); + var p = new Vector2(cx, -(y + h * 0.5f)); + if (rt.anchoredPosition != p) rt.anchoredPosition = p; + var s = new Vector2(w, h); + if (rt.sizeDelta != s) rt.sizeDelta = s; + } + + /// 매 프레임(Fx 층): 문 빛 숨 · 화살표가 문 쪽으로 흔들림. + internal void Animate(float t) + { + if (!Fx.gameObject.activeInHierarchy) return; + var gp = L("glow_pulse"); + float per = Mathf.Max(0.1f, At(gp, 0, 1.6f)); + float u = 0.5f - 0.5f * Mathf.Cos(t * Mathf.PI * 2f / per); + float a = Mathf.Lerp(At(gp, 1, 0.82f), At(gp, 2, 1f), u); + float ha = At(L("glow"), 8, 0.85f) * a; + glowImg.color = new Color(1f, 1f, 1f, a); + haloBig.color = haloSmall.color = new Color(1f, 1f, 1f, ha); + var ar = L("arrow"); + float bob = Mathf.Sin(t * Mathf.PI * 2f / Mathf.Max(0.1f, At(ar, 5, 1.2f))) * At(ar, 4, 6f) * Z; + float gap = fxArrow * At(ar, 3, 0.72f); + float cy = -fxDoor.center.y; + var pl = new Vector2(fxDoor.xMin - gap + bob, cy); + var pr = new Vector2(fxDoor.xMax + gap - bob, cy); + arrowL.rectTransform.anchoredPosition = pl; + arrowR.rectTransform.anchoredPosition = pr; + } + + // ---------- 정보 판 ---------- + + static RectTransform At(Transform p, string name, float x, float y, float w, float h) + { + return UiKit.At(p, name, x, y, w, h); + } + + Text Lab(Transform p, string name, string s, float size, Color c, TextAnchor a, float x, float y, float w, float h, bool stroke) + { + var t = UiKit.Label(p, s, Mathf.RoundToInt(size), c, a, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(x, -y), new Vector2(w, h)); + UiKit.Title(t, stroke); + t.horizontalOverflow = HorizontalWrapMode.Overflow; + t.raycastTarget = false; + t.name = name; + texts[name] = t; + return t; + } + + /// 정보 판 글자(테스트 · 없으면 null). + public string TextOf(string name) + { + Text t; + return texts.TryGetValue(name, out t) && t != null ? t.text : null; + } + + void BuildPanel() + { + UiKit.Clear(Panel); + texts.Clear(); + Measure(); + var db = S.Db; + var d = S.Save; + int n = Current; + var f = db.Tower.Get(n); + var stage = ArenaRules.TowerStage(db, screen.Root.Battle.Config, n); + var pn = L("panel"); + float pw = At(pn, 2, 1040f) * Z, ph = At(pn, 3, 508f) * Z; + var box = At(Panel, "Board", (Wv - pw) * 0.5f, Ypanel, pw, ph); + var bc = Col(pn, 4, UiKit.Dark); + bc.a = At(pn, 5, 0.97f); + UiKit.Skin(box, "card", bc, true); // 판 = 누름 막음(뒤 탑 끌기와 겹치지 않게) + float pt = At(pn, 6, 18f) * Z, pl = At(pn, 7, 26f) * Z; + var rc = L("right"); + float rw = At(rc, 0, 330f) * Z; + float lw = pw - pl * 2f - rw - pl; + + // 왼쪽 열: 층 · 편성 · 적 · 배율 · 보상 + var tf = L("title_font"); + float y = pt; + float tfs = At(tf, 0, 76f) * Z; + var title = Lab(box, "Floor", UiText.F("tower_floor", new[] { n.ToString(CultureInfo.InvariantCulture) }), tfs, Col(tf, 1, Color.yellow), TextAnchor.MiddleLeft, pl, y, lw, tfs * 1.05f, true); + if (n % Mathf.Max(1, (int)At(L("plaque_boss"), 2, 10f)) == 0) + { + var bt = L("boss_tag"); + float bh = At(bt, 0, 32f) * Z + 10f * Z; + var tag = UiKit.Skin(At(box, "BossTag", pl + title.preferredWidth + At(bt, 3, 12f) * Z, y + (tfs * 1.05f - bh) * 0.5f, 0f, bh), "chip", Col(bt, 2, UiKit.Red)); + var tt = UiKit.Title(UiKit.FillLabel(tag.transform, UiText.T("tower_boss_tag"), Mathf.RoundToInt(At(bt, 1, 20f) * Z), Color.white), true); + tt.horizontalOverflow = HorizontalWrapMode.Overflow; + tag.rectTransform.sizeDelta = new Vector2(Mathf.Ceil(tt.preferredWidth) + 28f * Z, bh); + } + y += tfs * 1.05f; + var lf = L("line_font"); + y += At(lf, 2, 2f) * Z; + float lfs = At(lf, 0, 23f) * Z; + string tmpl = f != null ? f.templateStage : "-"; + Lab(box, "Template", UiText.F("tower_template", new[] { tmpl, stage != null ? stage.subtitle : "" }), lfs, Col(lf, 1, Color.white), TextAnchor.MiddleLeft, pl, y, lw, lfs * 1.4f, false); + y += lfs * 1.4f; + y = Section(box, "SecEnemy", UiText.T("tower_enemies"), pl, y, lw); + y = EnemyRow(box, stage, pl, y, lw); + var mu = L("mult"); + y += At(mu, 3, 8f) * Z; + float mh = At(mu, 0, 42f) * Z; + int mfs = Mathf.RoundToInt(At(mu, 1, 23f) * Z); + float mx = pl; + if (f != null) + { + mx += Chip(box, "Hp", UiText.F("tower_hp", new[] { N(f.hpMult) }), mx, y, mh, mfs) + At(mu, 2, 10f) * Z; + Chip(box, "Atk", UiText.F("tower_atk", new[] { N(f.atkMult) }), mx, y, mh, mfs); + } + y += mh; + y = Section(box, "SecReward", UiText.T("tower_reward"), pl, y, lw); + var rwd = L("reward"); + var ri = L("reward_icons"); + float rs = At(rwd, 0, 76f) * Z, rg = At(rwd, 1, 20f) * Z; + float rx = pl; + if (f != null) + { + UiKit.RewardTile(box, "RwGem", rx, y, rs, "gear_white_", Str(ri, 0), f.rewardGem.ToString(CultureInfo.InvariantCulture), false); + rx += rs + rg; + UiKit.RewardTile(box, "RwBp", rx, y, rs, "gear_white_", Str(ri, 1), f.rewardBlueprint.ToString(CultureInfo.InvariantCulture), false); + rx += rs + rg; + if (!string.IsNullOrEmpty(f.chest)) UiKit.RewardTile(box, "RwChest", rx, y, rs, "gear_white_", UISkin.Has("chest_" + f.chest) ? "chest_" + f.chest : Str(ri, 2), "", false); + } + + // 오른쪽 열: 최고 층(순위) · 입장권 + 광고 · 도전 + float rx0 = pw - pl - rw; + float ry = pt + At(rc, 1, 6f) * Z; // 판 위 여백 + 열 위 여백(시안 padding 18 + 6 · 게임 QA r1 M9) + var be = L("best"); + float beh = At(be, 0, 44f) * Z; + bool rank = S.RankAvailable; + var bestChip = UiKit.Skin(At(box, "Best", rx0, ry, rw, beh), "chip", UiKit.Col("chip_dark", UiKit.Dark), rank); + var bestT = UiKit.Title(UiKit.FillLabel(bestChip.transform, UiText.F(rank ? "tower_best_rank" : "tower_best", new[] { d.arena.towerFloor.ToString(CultureInfo.InvariantCulture), db.Tower.Top.ToString(CultureInfo.InvariantCulture) }), Mathf.RoundToInt(At(be, 1, 22f) * Z), Color.white), true); + bestT.horizontalOverflow = HorizontalWrapMode.Overflow; + bestT.name = "Best"; + texts["Best"] = bestT; + if (rank) bestChip.gameObject.AddComponent