diff --git a/.gitignore b/.gitignore index 3329da55..fcbace20 100644 --- a/.gitignore +++ b/.gitignore @@ -98,3 +98,4 @@ Blacksmith/Bundles/WebGL/DefaultPackage/v1/defaultpackage_share_assets_pack_icon Blacksmith/Bundles/ Blacksmith/Assets/StreamingAssets/yoo/ Blacksmith/MemoryCaptures/ +Blacksmith/replay_pid21832.log diff --git a/Blacksmith/Assets/Editor/StarkBuilderSetting.asset b/Blacksmith/Assets/Editor/StarkBuilderSetting.asset index e14d607b..08b2c6e5 100644 --- a/Blacksmith/Assets/Editor/StarkBuilderSetting.asset +++ b/Blacksmith/Assets/Editor/StarkBuilderSetting.asset @@ -44,7 +44,7 @@ MonoBehaviour: a: tt71d3076eeee6cd1207 version: autoVersion: 0 - b: E:\Project\apk\BlacksmithTT\webgl_package-20241217_215110.zip + b: E:\Project\apk\BlacksmithTT\webgl_package-20241219_231105.zip c: 0 d: 0 e: 0 diff --git a/Blacksmith/Assets/Pack/Icon/changbinglei.png b/Blacksmith/Assets/Pack/Icon/changbinglei.png new file mode 100644 index 00000000..a4c302ba Binary files /dev/null and b/Blacksmith/Assets/Pack/Icon/changbinglei.png differ diff --git a/Blacksmith/Assets/Pack/Icon/changbinglei.png.meta b/Blacksmith/Assets/Pack/Icon/changbinglei.png.meta new file mode 100644 index 00000000..0b71a214 --- /dev/null +++ b/Blacksmith/Assets/Pack/Icon/changbinglei.png.meta @@ -0,0 +1,153 @@ +fileFormatVersion: 2 +guid: 274d48f0d3707da42a8cd7af55b04a5e +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: 1 + 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: 3 + 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: 3 + 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: 3 + buildTarget: iPhone + 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: 3 + 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 + - serializedVersion: 3 + 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Pack/Icon/feibiaolei.png b/Blacksmith/Assets/Pack/Icon/feibiaolei.png new file mode 100644 index 00000000..49c6dfc7 Binary files /dev/null and b/Blacksmith/Assets/Pack/Icon/feibiaolei.png differ diff --git a/Blacksmith/Assets/Pack/Icon/feibiaolei.png.meta b/Blacksmith/Assets/Pack/Icon/feibiaolei.png.meta new file mode 100644 index 00000000..904f0ecf --- /dev/null +++ b/Blacksmith/Assets/Pack/Icon/feibiaolei.png.meta @@ -0,0 +1,153 @@ +fileFormatVersion: 2 +guid: 13978da1947b75c46808461f33e3b03c +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: 1 + 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: 3 + 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: 3 + 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: 3 + buildTarget: iPhone + 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: 3 + 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 + - serializedVersion: 3 + 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Pack/Icon/gonglei.png b/Blacksmith/Assets/Pack/Icon/gonglei.png new file mode 100644 index 00000000..7f50e7c4 Binary files /dev/null and b/Blacksmith/Assets/Pack/Icon/gonglei.png differ diff --git a/Blacksmith/Assets/Pack/Icon/gonglei.png.meta b/Blacksmith/Assets/Pack/Icon/gonglei.png.meta new file mode 100644 index 00000000..0065ab15 --- /dev/null +++ b/Blacksmith/Assets/Pack/Icon/gonglei.png.meta @@ -0,0 +1,153 @@ +fileFormatVersion: 2 +guid: 914c3ccc52365d24f9dbf1b89aba30a2 +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: 1 + 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: 3 + 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: 3 + 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: 3 + buildTarget: iPhone + 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: 3 + 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 + - serializedVersion: 3 + 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Pack/Icon/jianlei.png b/Blacksmith/Assets/Pack/Icon/jianlei.png new file mode 100644 index 00000000..bcf4cb8b Binary files /dev/null and b/Blacksmith/Assets/Pack/Icon/jianlei.png differ diff --git a/Blacksmith/Assets/Pack/Icon/jianlei.png.meta b/Blacksmith/Assets/Pack/Icon/jianlei.png.meta new file mode 100644 index 00000000..9c715e41 --- /dev/null +++ b/Blacksmith/Assets/Pack/Icon/jianlei.png.meta @@ -0,0 +1,153 @@ +fileFormatVersion: 2 +guid: 93d42ab5502e1a242b02c8dccde2421c +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: 1 + 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: 3 + 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: 3 + 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: 3 + buildTarget: iPhone + 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: 3 + 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 + - serializedVersion: 3 + 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Pack/Icon/nujianlei.png b/Blacksmith/Assets/Pack/Icon/nujianlei.png new file mode 100644 index 00000000..fd21546b Binary files /dev/null and b/Blacksmith/Assets/Pack/Icon/nujianlei.png differ diff --git a/Blacksmith/Assets/Pack/Icon/nujianlei.png.meta b/Blacksmith/Assets/Pack/Icon/nujianlei.png.meta new file mode 100644 index 00000000..056794f1 --- /dev/null +++ b/Blacksmith/Assets/Pack/Icon/nujianlei.png.meta @@ -0,0 +1,153 @@ +fileFormatVersion: 2 +guid: 57e318f2688cd3442861915c4a94cb43 +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: 1 + 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: 3 + 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: 3 + 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: 3 + buildTarget: iPhone + 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: 3 + 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 + - serializedVersion: 3 + 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Pack/Icon/qingjialei.png b/Blacksmith/Assets/Pack/Icon/qingjialei.png new file mode 100644 index 00000000..ce0ed9bf Binary files /dev/null and b/Blacksmith/Assets/Pack/Icon/qingjialei.png differ diff --git a/Blacksmith/Assets/Pack/Icon/qingjialei.png.meta b/Blacksmith/Assets/Pack/Icon/qingjialei.png.meta new file mode 100644 index 00000000..7970833d --- /dev/null +++ b/Blacksmith/Assets/Pack/Icon/qingjialei.png.meta @@ -0,0 +1,153 @@ +fileFormatVersion: 2 +guid: 21c0374ac3b7ffa409c086e1b1951e85 +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: 1 + 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: 3 + 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: 3 + 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: 3 + buildTarget: iPhone + 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: 3 + 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 + - serializedVersion: 3 + 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Pack/Icon/zhanglei.png b/Blacksmith/Assets/Pack/Icon/zhanglei.png new file mode 100644 index 00000000..748a2341 Binary files /dev/null and b/Blacksmith/Assets/Pack/Icon/zhanglei.png differ diff --git a/Blacksmith/Assets/Pack/Icon/zhanglei.png.meta b/Blacksmith/Assets/Pack/Icon/zhanglei.png.meta new file mode 100644 index 00000000..282f2e2e --- /dev/null +++ b/Blacksmith/Assets/Pack/Icon/zhanglei.png.meta @@ -0,0 +1,153 @@ +fileFormatVersion: 2 +guid: 47f109215669e9e478960dc2f12c225f +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: 1 + 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: 3 + 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: 3 + 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: 3 + buildTarget: iPhone + 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: 3 + 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 + - serializedVersion: 3 + 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Pack/Icon/zhongjialei.png b/Blacksmith/Assets/Pack/Icon/zhongjialei.png new file mode 100644 index 00000000..a518c156 Binary files /dev/null and b/Blacksmith/Assets/Pack/Icon/zhongjialei.png differ diff --git a/Blacksmith/Assets/Pack/Icon/zhongjialei.png.meta b/Blacksmith/Assets/Pack/Icon/zhongjialei.png.meta new file mode 100644 index 00000000..7bfcee92 --- /dev/null +++ b/Blacksmith/Assets/Pack/Icon/zhongjialei.png.meta @@ -0,0 +1,153 @@ +fileFormatVersion: 2 +guid: 1218545f647933c4b95275d2a99c44ab +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: 1 + 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: 3 + 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: 3 + 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: 3 + buildTarget: iPhone + 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: 3 + 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 + - serializedVersion: 3 + 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Prefab.meta b/Blacksmith/Assets/Prefab.meta new file mode 100644 index 00000000..6146ace2 --- /dev/null +++ b/Blacksmith/Assets/Prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 837b121af68baf643b5c0506622876f1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Prefab/Dot.prefab b/Blacksmith/Assets/Prefab/Dot.prefab new file mode 100644 index 00000000..8f2b3c66 --- /dev/null +++ b/Blacksmith/Assets/Prefab/Dot.prefab @@ -0,0 +1,48 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &7996413630272934192 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5511837541217477193} + - component: {fileID: 5044381466384612566} + m_Layer: 0 + m_Name: Dot + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5511837541217477193 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7996413630272934192} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 752.8704, y: 690.9177, z: 12.530368} + 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} +--- !u!114 &5044381466384612566 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7996413630272934192} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aa3bca8dd40d884080174dd0a1530a5, type: 3} + m_Name: + m_EditorClassIdentifier: + appKey: ca7bcf910e8f8f92 + userId: 71de615564c8a231 diff --git a/Blacksmith/Assets/Prefab/Dot.prefab.meta b/Blacksmith/Assets/Prefab/Dot.prefab.meta new file mode 100644 index 00000000..edac2820 --- /dev/null +++ b/Blacksmith/Assets/Prefab/Dot.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 65a3b817210cc024eaafdb268074b6a3 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame.meta b/Blacksmith/Assets/SEExportedGame.meta new file mode 100644 index 00000000..805fe504 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f5bddf6df832a4c5bbcc29007154a5aa +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Plugin.meta b/Blacksmith/Assets/SEExportedGame/Plugin.meta new file mode 100644 index 00000000..9001d0d1 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Plugin.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 779630046d1254c59bdf10a8ff65f844 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll b/Blacksmith/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll new file mode 100644 index 00000000..7a8a6b5d Binary files /dev/null and b/Blacksmith/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll differ diff --git a/Blacksmith/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll.meta b/Blacksmith/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll.meta new file mode 100644 index 00000000..8d562d13 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: fce9940be4b824c7586a7a320ec2a327 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib b/Blacksmith/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib new file mode 100644 index 00000000..77ba35e2 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib @@ -0,0 +1,1413 @@ +mergeInto(LibraryManager.library, { + _isdebug: false, + _log: function (isdebug) { + try{ + _isdebug=isdebug; + }catch (error) { + console.log("An error occurred in _log:", error); + } + + }, + _ready: function () { + SendMessage("SESDKBridge", "readyFun"); + }, + + _prevInit_dy: function (appkey) { + try { + var _appkey = UTF8ToString(appkey); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("douyin_prevInit :", " appkey:", _appkey); + globalThis.SESDK.prevInit(_appkey); + } catch (error) { + console.log("An error occurred in _prevInit_dy:", error); + } + }, + + _prevInit_wx: function (appkey) { + try { + var _appkey = UTF8ToString(appkey); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("weixin_prevInit :", " appkey:", _appkey); + GameGlobal.SESDK.prevInit(_appkey); + } catch (error) { + console.log("An error occurred in _prevInit_wx:", error); + } + }, + + _init_dy: function (initParams) { + try { + var _initParams = UTF8ToString(initParams); + var jsonObject = {}; + if (_initParams != "") jsonObject = JSON.parse(_initParams); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("douyin_init :", " initParams:", jsonObject); + globalThis.SESDK.init(jsonObject); + } catch (error) { + console.log("An error occurred in _init_dy:", error); + } + }, + _init_wx: function (initParams) { + try { + var _initParams = UTF8ToString(initParams); + var jsonObject = {}; + if (_initParams != "") jsonObject = JSON.parse(_initParams); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("weixin_init :", " initParams:", jsonObject); + + jsonObject.config.tencentAdvertisingGameSDK=GameGlobal.SDK; + + GameGlobal.SESDK.init(jsonObject); + } catch (error) { + console.log("An error occurred in _init_wx:", error); + } + }, + + _abtestuse_dy: function () { + try { + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("douyin_abtestuse"); + globalThis.SESDK.use(globalThis.miniabtestPlugin); + } catch (error) { + console.log("An error occurred in _abtestuse_dy:", error); + } + }, + _abtestuse_wx: function () { + try { + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("weixin_abtestuse", GameGlobal.miniabtestPlugin); + GameGlobal.SESDK.use(GameGlobal.miniabtestPlugin); + } catch (error) { + console.log("An error occurred in _abtestuse_wx:", error); + } + }, + _setRemoteDefaultConfig_dy: function (config) { + try { + var _config = UTF8ToString(config); + var jsonObject = {}; + if (_config != "") jsonObject = JSON.parse(_config); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("douyin_setRemoteDefaultConfig :", "_config:", jsonObject); + globalThis.SESDK.setRemoteDefaultConfig(jsonObject || []); + } catch (error) { + console.log("An error occurred in _setRemoteDefaultConfig_dy:", error); + } + }, + _setRemoteDefaultConfig_wx: function (config) { + try { + var _config = UTF8ToString(config); + var jsonObject = {}; + if (_config != "") jsonObject = JSON.parse(_config); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("weixin_setRemoteDefaultConfig :", "_config:", jsonObject); + GameGlobal.SESDK.setRemoteDefaultConfig(jsonObject || []); + } catch (error) { + console.log("An error occurred in _setRemoteDefaultConfig_wx:", error); + } + }, + + _setRemoteConfigEventProperties_dy: function (properties) { + try { + var _properties = UTF8ToString(properties); + var jsonObject = {}; + if (_properties != "") jsonObject = JSON.parse(_properties); + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log( + "douyin_setRemoteConfigEventProperties :", + " properties:", + jsonObject + ); + globalThis.SESDK.setRemoteConfigEventProperties(jsonObject); + } catch (error) { + console.log( + "An error occurred in _setRemoteConfigEventProperties_dy:", + error + ); + } + }, + + _setRemoteConfigEventProperties_wx: function (properties) { + try { + var _properties = UTF8ToString(properties); + var jsonObject = {}; + if (_properties != "") jsonObject = JSON.parse(_properties); + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log( + "weixin_setRemoteConfigEventProperties :", + " properties:", + jsonObject + ); + GameGlobal.SESDK.setRemoteConfigEventProperties(jsonObject); + } catch (error) { + console.log( + "An error occurred in _setRemoteConfigEventProperties_wx:", + error + ); + } + }, + + _setRemoteConfigUserProperties_dy: function (properties) { + try { + var _properties = UTF8ToString(properties); + var jsonObject = {}; + if (_properties != "") jsonObject = JSON.parse(_properties); + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log( + "douyin_setRemoteConfigUserProperties :", + " properties:", + jsonObject + ); + globalThis.SESDK.setRemoteConfigUserProperties(jsonObject); + } catch (error) { + console.log( + "An error occurred in _setRemoteConfigUserProperties_dy:", + error + ); + } + }, + _setRemoteConfigUserProperties_wx: function (properties) { + try { + var _properties = UTF8ToString(properties); + var jsonObject = {}; + if (_properties != "") jsonObject = JSON.parse(_properties); + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log( + "weixin_setRemoteConfigUserProperties :", + " properties:", + jsonObject + ); + GameGlobal.SESDK.setRemoteConfigUserProperties(jsonObject); + } catch (error) { + console.log( + "An error occurred in _setRemoteConfigUserProperties_wx:", + error + ); + } + }, + _fastFetchRemoteConfig_dy: function (key) { + try { + var _key = UTF8ToString(key); + + var value = "unknown"; + + value = globalThis.SESDK.fastFetchRemoteConfig(_key).toString(); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log( + "douyin_fastFetchRemoteConfig :", + " key:", + _key, + " value:", + value + ); + + if (typeof value !== "string") { + return UTF8ToString("unknown"); + } + + var bufferSize = lengthBytesUTF8(value) + 1; + var buffer = _malloc(bufferSize); + stringToUTF8(value, buffer, bufferSize); + return buffer; + } catch (error) { + console.log("An error occurred in _fastFetchRemoteConfig_dy:", error); + } + }, + + _fastFetchRemoteConfig_wx: function (key) { + try { + var _key = UTF8ToString(key); + + var value = "unknown"; + + value = GameGlobal.SESDK.fastFetchRemoteConfig(_key).toString(); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log( + "weixin_fastFetchRemoteConfig :", + " key:", + _key, + " value:", + value + ); + + if (typeof value !== "string") { + return UTF8ToString("unknown"); + } + + var bufferSize = lengthBytesUTF8(value) + 1; + var buffer = _malloc(bufferSize); + stringToUTF8(value, buffer, bufferSize); + return buffer; + } catch (error) { + console.log("An error occurred in _fastFetchRemoteConfig_wx:", error); + } + }, + _asyncFetchRemoteConfig_dy: function (key) { + try { + var _key = UTF8ToString(key); + + globalThis.SESDK.asyncFetchRemoteConfig(_key).then(function (value) { + if (typeof _isdebug !== "undefined" && _isdebug) + console.log( + "douyin _asyncFetchRemoteConfig", + " key:", + _key, + " value:", + JSON.stringify(value) + ); + + var myObject = { + key: _key, + value: value.toString(), + }; + if (typeof _isdebug !== "undefined" && _isdebug) + console.log( + "douyin _asyncFetchRemoteConfig", + " key:", + _key, + " value:", + JSON.stringify(myObject) + ); + SendMessage( + "SESDKBridge", + "asyncFetchRemoteConfigFun", + JSON.stringify(myObject) + ); + }); + } catch (error) { + console.log("An error occurred in _asyncFetchRemoteConfig_dy:", error); + } + }, + _asyncFetchRemoteConfig_wx: function (key) { + try { + var _key = UTF8ToString(key); + + GameGlobal.SESDK.asyncFetchRemoteConfig(_key).then(function (value) { + var myObject = { + key: _key, + value: value.toString(), + }; + if (typeof _isdebug !== "undefined" && _isdebug) + console.log( + "weixin _asyncFetchRemoteConfig", + " key:", + _key, + " value:", + JSON.stringify(myObject) + ); + SendMessage( + "SESDKBridge", + "asyncFetchRemoteConfigFun", + JSON.stringify(myObject) + ); + }); + } catch (error) { + console.log("An error occurred in _asyncFetchRemoteConfig_wx:", error); + } + }, + + _setVisitorId_dy: function (visitorId) { + try { + var _visitorId = UTF8ToString(visitorId); + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("douyinsetVisitorId :", " visitorId:", _visitorId); + globalThis.SESDK.setVisitorId(_visitorId); + } catch (error) { + console.log("An error occurred in _setVisitorId_dy:", error); + } + }, + _setVisitorId_wx: function (visitorId) { + try { + var _visitorId = UTF8ToString(visitorId); + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("weixinsetVisitorId :", " visitorId:", _visitorId); + GameGlobal.SESDK.setVisitorId(_visitorId); + } catch (error) { + console.log("An error occurred in _setVisitorId_wx:", error); + } + }, + + _getVisitorId_dy: function () { + try { + var visitorId = "unknown"; + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("douyin_getVisitorId"); + visitorId = globalThis.SESDK.getVisitorId(); + + if (typeof visitorId !== "string") { + console.log("Invalid _getVisitorId value in the returned object"); + visitorId = "unknown"; + } + + var bufferSize = lengthBytesUTF8(visitorId) + 1; + var buffer = _malloc(bufferSize); + stringToUTF8(visitorId, buffer, bufferSize); + return buffer; + } catch (error) { + console.log("An error occurred in _getVisitorId_dy:", error); + return null; + } + }, + _getVisitorId_wx: function () { + try { + var visitorId = "unknown"; + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("weixin_getVisitorId"); + visitorId = GameGlobal.SESDK.getVisitorId(); + + if (typeof visitorId !== "string") { + console.log("Invalid _getVisitorId value in the returned object"); + visitorId = "unknown"; + } + + var bufferSize = lengthBytesUTF8(visitorId) + 1; + var buffer = _malloc(bufferSize); + stringToUTF8(visitorId, buffer, bufferSize); + return buffer; + } catch (error) { + console.log("An error occurred in _getVisitorId_wx:", error); + return null; + } + }, + + _login_dy: function (accountId) { + try { + var _accountId = UTF8ToString(accountId); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("douyin_login :", " accountId:", _accountId); + globalThis.SESDK.login(_accountId); + } catch (error) { + console.log("An error occurred in _login_dy:", error); + } + }, + _login_wx: function (accountId) { + try { + var _accountId = UTF8ToString(accountId); + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("weixin_login :", " accountId:", _accountId); + GameGlobal.SESDK.login(_accountId); + } catch (error) { + console.log("An error occurred in _login_wx:", error); + } + }, + + _getAccountId_dy: function () { + try { + var accountId = "unknow"; + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("douyin_getAccountId"); + accountId = globalThis.SESDK.getAccountId(); + + if (typeof accountId !== "string") { + console.log("Invalid _getAccountId value in the returned object"); + accountId = "unknow"; + } + + var bufferSize = lengthBytesUTF8(accountId) + 1; + var buffer = _malloc(bufferSize); + stringToUTF8(accountId, buffer, bufferSize); + return buffer; + } catch (error) { + console.log("An error occurred in _getAccountId_dy:", error); + return null; + } + }, + + _getAccountId_wx: function () { + try { + var accountId = "unknow"; + + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("weixin_getAccountId"); + accountId = GameGlobal.SESDK.getAccountId(); + + if (typeof accountId !== "string") { + console.log("Invalid _getAccountId value in the returned object"); + accountId = "unknow"; + } + + var bufferSize = lengthBytesUTF8(accountId) + 1; + var buffer = _malloc(bufferSize); + stringToUTF8(accountId, buffer, bufferSize); + return buffer; + } catch (error) { + console.log("An error occurred in _getAccountId_wx:", error); + return null; + } + }, + + _logout_dy: function () { + try { + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("douyin_logout"); + + globalThis.SESDK.logout(); + } catch (error) { + console.log("An error occurred in _logout_dy:", error); + } + }, + + _logout_wx: function () { + try { + if (typeof _isdebug !== "undefined" && _isdebug) + console.log("weixin_logout"); + + GameGlobal.SESDK.logout(); + } catch (error) { + console.log("An error occurred in _logout_wx:", error); + } + }, + + _setSuperProperties_dy: function (propertiesJson) { + try { + var _propertiesJson = UTF8ToString(propertiesJson); + var jsonObject = {}; + if (_propertiesJson!= "") jsonObject = JSON.parse(_propertiesJson); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_setSuperProperties :", " propertiesJson:", jsonObject); + + globalThis.SESDK.setSuperProperties(jsonObject); + } catch (error) { + console.log("An error occurred in _setSuperProperties_dy:", error); + } + }, + + _setSuperProperties_wx: function (propertiesJson) { + try { + var _propertiesJson = UTF8ToString(propertiesJson); + var jsonObject = {}; + if (_propertiesJson!= "") jsonObject = JSON.parse(_propertiesJson); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_setSuperProperties :", " propertiesJson:", jsonObject); + + GameGlobal.SESDK.setSuperProperties(jsonObject); + } catch (error) { + console.log("An error occurred in _setSuperProperties_wx:", error); + } + }, + _unsetSuperProperty_dy: function (key) { + try { + var _key = UTF8ToString(key); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_unsetSuperProperty :", " key:", _key); + + globalThis.SESDK.unsetSuperProperty(_key); + } catch (error) { + console.log("An error occurred in _unsetSuperProperty_dy:", error); + } + }, + + _unsetSuperProperty_wx: function (key) { + try { + var _key = UTF8ToString(key); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_unsetSuperProperty :", " key:", _key); + + GameGlobal.SESDK.unsetSuperProperty(_key); + } catch (error) { + console.log("An error occurred in _unsetSuperProperty_wx:", error); + } + }, + _clearSuperProperties_dy: function () { + try { + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_clearSuperProperties"); + + globalThis.SESDK.clearSuperProperties(); + } catch (error) { + console.log("An error occurred in _clearSuperProperties_dy:", error); + } + }, + + _clearSuperProperties_wx: function () { + try { + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_clearSuperProperties"); + + GameGlobal.SESDK.clearSuperProperties(); + } catch (error) { + console.log("An error occurred in _clearSuperProperties_wx:", error); + } + }, + _setPresetEvent_dy: function (eventType, properties) { + try { + var _eventType = UTF8ToString(eventType); + var _properties = UTF8ToString(properties); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_setPresetEvent :", " eventType:", _eventType, "properties:", _properties); + + var jsonObject = {}; + if (_properties!= "") jsonObject = JSON.parse(_properties); + + globalThis.SESDK.setPresetEvent(_eventType, jsonObject); + } catch (error) { + console.log("An error occurred in _setPresetEvent_dy:", error); + } + }, + + _setPresetEvent_wx: function (eventType, properties) { + try { + var _eventType = UTF8ToString(eventType); + var _properties = UTF8ToString(properties); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_setPresetEvent :", " eventType:", _eventType, "properties:", _properties); + + var jsonObject = {}; + if (_properties!= "") jsonObject = JSON.parse(_properties); + + GameGlobal.SESDK.setPresetEvent(_eventType, jsonObject); + } catch (error) { + console.log("An error occurred in _setPresetEvent_wx:", error); + } + }, + _setChannel_dy: function (channel) { + try { + var _channel = UTF8ToString(channel); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_setChannel :", " channel:", _channel); + + globalThis.SESDK.setChannel(_channel); + } catch (error) { + console.log("An error occurred in _setChannel_dy:", error); + } + }, + + _setChannel_wx: function (channel) { + try { + var _channel = UTF8ToString(channel); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_setChannel :", " channel:", _channel); + + GameGlobal.SESDK.setChannel(_channel); + } catch (error) { + console.log("An error occurred in _setChannel_wx:", error); + } + }, + _setReferrerTitle_dy: function (referrer_title) { + try { + var _referrer_title = UTF8ToString(referrer_title); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_setReferrerTitle :", " referrer_title:", _referrer_title); + + globalThis.SESDK.setReferrerTitle(_referrer_title); + } catch (error) { + console.log("An error occurred in _setReferrerTitle_dy:", error); + } + }, + + _setReferrerTitle_wx: function (referrer_title) { + try { + var _referrer_title = UTF8ToString(referrer_title); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_setReferrerTitle :", " referrer_title:", _referrer_title); + + GameGlobal.SESDK.setReferrerTitle(_referrer_title); + } catch (error) { + console.log("An error occurred in _setReferrerTitle_wx:", error); + } + }, + _setXcxPageTitle_dy: function (page_title) { + try { + var _page_title = UTF8ToString(page_title); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_setXcxPageTitle :", " page_title:", _page_title); + + globalThis.SESDK.setXcxPageTitle(_page_title); + } catch (error) { + console.log("An error occurred in _setXcxPageTitle_dy:", error); + } + }, + + _setXcxPageTitle_wx: function (page_title) { + try { + var _page_title = UTF8ToString(page_title); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_setXcxPageTitle :", " page_title:", _page_title); + + GameGlobal.SESDK.setXcxPageTitle(_page_title); + } catch (error) { + console.log("An error occurred in _setXcxPageTitle_wx:", error); + } + }, + _trackAdImpression_dy: function (data) { + try { + var _data = UTF8ToString(data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_trackAdImpression :", " data:", _data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + globalThis.SESDK.trackAdImpression(jsonObject||{}); + } catch (error) { + console.log("An error occurred in _trackAdImpression_dy:", error); + } + }, + + _trackAdImpression_wx: function (data) { + try { + var _data = UTF8ToString(data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackAdImpression :", " data:", _data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + GameGlobal.SESDK.trackAdImpression(jsonObject||{}); + } catch (error) { + console.log("An error occurred in _trackAdImpression_wx:", error); + } + }, + _trackAdClick_dy: function (data) { + try { + var _data = UTF8ToString(data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_trackAdClick :", " data:", _data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + globalThis.SESDK.trackAdClick(jsonObject); + } catch (error) { + console.log("An error occurred in _trackAdClick_dy:", error); + } + }, + + _trackAdClick_wx: function (data) { + try { + var _data = UTF8ToString(data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackAdClick :", " data:", _data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + GameGlobal.SESDK.trackAdClick(jsonObject); + } catch (error) { + console.log("An error occurred in _trackAdClick_wx:", error); + } + }, + _trackIAP_dy: function (data) { + try { + var _data = UTF8ToString(data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_trackIAP :", " data:", _data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + globalThis.SESDK.trackIAP(jsonObject); + } catch (error) { + console.log("An error occurred in _trackIAP_dy:", error); + } + }, + + _trackIAP_wx: function (data) { + try { + var _data = UTF8ToString(data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackIAP :", " data:", _data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + GameGlobal.SESDK.trackIAP(jsonObject); + } catch (error) { + console.log("An error occurred in _trackIAP_wx:", error); + } + }, + _trackAppAttr_dy: function (data) { + try { + var _data = UTF8ToString(data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_trackAppAttr :", " data:", _data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + globalThis.SESDK.trackAppAttr(jsonObject); + } catch (error) { + console.log("An error occurred in _trackAppAttr_dy:", error); + } + }, + + _trackAppAttr_wx: function (data) { + try { + var _data = UTF8ToString(data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackAppAttr :", " data:", _data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + GameGlobal.SESDK.trackAppAttr(jsonObject); + } catch (error) { + console.log("An error occurred in _trackAppAttr_wx:", error); + } + }, + _trackOrder_dy: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_trackOrder :", " data:", jsonObject); + + globalThis.SESDK.trackOrder(jsonObject); + } catch (error) { + console.log("An error occurred in _trackOrder_dy:", error); + } + }, + + _trackOrder_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackOrder :", " data:", jsonObject); + + GameGlobal.SESDK.trackOrder(jsonObject); + } catch (error) { + console.log("An error occurred in _trackOrder_wx:", error); + } + }, + _trackRegister_dy: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_trackRegister :", " data:", jsonObject); + + globalThis.SESDK.trackRegister(jsonObject); + } catch (error) { + console.log("An error occurred in _trackRegister_dy:", error); + } + }, + + _trackRegister_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackRegister :", " data:", jsonObject); + + GameGlobal.SESDK.trackRegister(jsonObject); + } catch (error) { + console.log("An error occurred in _trackRegister_wx:", error); + } + }, + _trackLogin_dy: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_trackLogin :", " data:", jsonObject); + + globalThis.SESDK.trackLogin(jsonObject); + } catch (error) { + console.log("An error occurred in _trackLogin_dy:", error); + } + }, + + _trackLogin_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackLogin :", " data:", jsonObject); + + GameGlobal.SESDK.trackLogin(jsonObject); + } catch (error) { + console.log("An error occurred in _trackLogin_wx:", error); + } + }, + + + + _trackReActive_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackReActive :", " data:", jsonObject); + + GameGlobal.SESDK.trackReActive(jsonObject); + } catch (error) { + console.log("An error occurred in _trackReActive_wx:", error); + } +}, + +_trackAddToWishlist_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackAddToWishlist :", " data:", jsonObject); + + GameGlobal.SESDK.trackAddToWishlist(jsonObject); + } catch (error) { + console.log("An error occurred in _trackAddToWishlist_wx:", error); + } +}, +_trackShare_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackShare :", " data:", jsonObject); + + GameGlobal.SESDK.trackShare(jsonObject); + } catch (error) { + console.log("An error occurred in _trackShare_wx:", error); + } +}, + +_trackCreateRole_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackCreateRole :", " data:", jsonObject); + + GameGlobal.SESDK.trackCreateRole(jsonObject); + } catch (error) { + console.log("An error occurred in _trackCreateRole_wx:", error); + } +}, + + +_trackTutorialFinish_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackTutorialFinish :", " data:", jsonObject); + + GameGlobal.SESDK.trackTutorialFinish(jsonObject); + } catch (error) { + console.log("An error occurred in _trackTutorialFinish_wx:", error); + } +}, + +_trackUpdateLevel_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackUpdateLevel :", " data:", jsonObject); + + GameGlobal.SESDK.trackUpdateLevel(jsonObject); + } catch (error) { + console.log("An error occurred in _trackUpdateLevel_wx:", error); + } +}, + + +_trackViewContentMall_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackViewContentActivity :", " data:", jsonObject); + + GameGlobal.SESDK.trackViewContentMall(jsonObject); + } catch (error) { + console.log("An error occurred in _trackViewContentMall_wx:", error); + } +}, + +_trackViewContentActivity_wx: function (data) { + try { + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_trackViewContentMall :", " data:", jsonObject); + + GameGlobal.SESDK.trackViewContentActivity(jsonObject); + } catch (error) { + console.log("An error occurred in _trackViewContentActivity_wx:", error); + } +}, + + + + + + _track_dy: function (eventName, data) { + try { + var _eventName = UTF8ToString(eventName); + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_track :", " eventName:", _eventName, " data:", jsonObject); + + globalThis.SESDK.track(_eventName, jsonObject); + } catch (error) { + console.log("An error occurred in _track_dy:", error); + } + }, + + _track_wx: function (eventName, data) { + try { + var _eventName = UTF8ToString(eventName); + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_track :", " eventName:", _eventName, " data:", jsonObject); + + GameGlobal.SESDK.track(_eventName, jsonObject); + } catch (error) { + console.log("An error occurred in _track_wx:", error); + } + }, + _eventStart_dy: function (eventName) { + try { + var _eventName = UTF8ToString(eventName); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_eventstart :", " eventName:", _eventName); + + globalThis.SESDK.eventStart(_eventName); + } catch (error) { + console.log("An error occurred in _eventStart_dy:", error); + } + }, + + _eventStart_wx: function (eventName) { + try { + var _eventName = UTF8ToString(eventName); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_eventstart :", " eventName:", _eventName); + + GameGlobal.SESDK.eventStart(_eventName); + } catch (error) { + console.log("An error occurred in _eventStart_wx:", error); + } + }, + _eventFinish_dy: function (eventName, data) { + try { + var _eventName = UTF8ToString(eventName); + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_eventFinish :", " eventName:", _eventName, " data:", jsonObject); + + globalThis.SESDK.eventFinish(_eventName, jsonObject); + } catch (error) { + console.log("An error occurred in _eventFinish_dy:", error); + } + }, + + _eventFinish_wx: function (eventName, data) { + try { + var _eventName = UTF8ToString(eventName); + var _data = UTF8ToString(data); + + var jsonObject = {}; + if (_data!= "") jsonObject = JSON.parse(_data); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_eventFinish :", " eventName:", _eventName, " data:", jsonObject); + + GameGlobal.SESDK.eventFinish(_eventName, jsonObject); + } catch (error) { + console.log("An error occurred in _eventFinish_wx:", error); + } + }, + _userInit_dy: function (userdata) { + try { + var _userdata = UTF8ToString(userdata); + + var jsonObject = {}; + if (_userdata!= "") jsonObject = JSON.parse(_userdata); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_userInit :", " userdata:", jsonObject); + + globalThis.SESDK.userInit(jsonObject); + } catch (error) { + console.log("An error occurred in _userInit_dy:", error); + } + }, + + _userInit_wx: function (userdata) { + try { + var _userdata = UTF8ToString(userdata); + + var jsonObject = {}; + if (_userdata!= "") jsonObject = JSON.parse(_userdata); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_userInit :", " userdata:", jsonObject); + + GameGlobal.SESDK.userInit(jsonObject); + } catch (error) { + console.log("An error occurred in _userInit_wx:", error); + } + }, + _userUpdate_dy: function (Update) { + try { + var _Update = UTF8ToString(Update); + + var jsonObject = {}; + if (_Update!= "") jsonObject = JSON.parse(_Update); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_userUpdate :", " userkey:", jsonObject); + + globalThis.SESDK.userUpdate(jsonObject); + } catch (error) { + console.log("An error occurred in _userUpdate_dy:", error); + } + }, + + _userUpdate_wx: function (Update) { + try { + var _Update = UTF8ToString(Update); + + var jsonObject = {}; + if (_Update!= "") jsonObject = JSON.parse(_Update); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_userUpdate :", " userkey:", jsonObject); + + GameGlobal.SESDK.userUpdate(jsonObject); + } catch (error) { + console.log("An error occurred in _userUpdate_wx:", error); + } + }, + _userAdd_dy: function (userAdd) { + try { + var _userAdd = UTF8ToString(userAdd); + + var jsonObject = {}; + if (_userAdd!= "") jsonObject = JSON.parse(_userAdd); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_userAdd :", " userAdd:", jsonObject); + + globalThis.SESDK.userAdd(jsonObject); + } catch (error) { + console.log("An error occurred in _userAdd_dy:", error); + } + }, + + _userAdd_wx: function (userAdd) { + try { + var _userAdd = UTF8ToString(userAdd); + + var jsonObject = {}; + if (_userAdd!= "") jsonObject = JSON.parse(_userAdd); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_userAdd :", " userAdd:", jsonObject); + + GameGlobal.SESDK.userAdd(jsonObject); + } catch (error) { + console.log("An error occurred in _userAdd_wx:", error); + } + }, + _userAppend_dy: function(userAppend) { + try { + var _userAppend = UTF8ToString(userAppend); + + var jsonObject = {}; + if (_userAppend!= "") jsonObject = JSON.parse(_userAppend); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_userAppend :", " userAppend:", jsonObject); + + globalThis.SESDK.userAppend(jsonObject); + } catch (error) { + console.log("An error occurred in _userAppend_dy:", error); + } + }, + + _userAppend_wx: function(userAppend) { + try { + var _userAppend = UTF8ToString(userAppend); + + var jsonObject = {}; + if (_userAppend!= "") jsonObject = JSON.parse(_userAppend); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_userAppend :", " userAppend:", jsonObject); + + GameGlobal.SESDK.userAppend(jsonObject); + } catch (error) { + console.log("An error occurred in _userAppend_wx:", error); + } + }, + + _userUnset_dy: function(userUnset) { + try { + var _userUnset = UTF8ToString(userUnset); + + var jsonObject = {}; + if (_userUnset!= "") jsonObject = JSON.parse(_userUnset); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_userUnset :", " userUnset:", jsonObject); + + globalThis.SESDK.userUnset(jsonObject); + } catch (error) { + console.log("An error occurred in _userUnset_dy:", error); + } + }, + + _userUnset_wx: function(userUnset) { + try { + var _userUnset = UTF8ToString(userUnset); + + var jsonObject = {}; + if (_userUnset!= "") jsonObject = JSON.parse(_userUnset); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_userUnset :", " userUnset:", jsonObject); + + GameGlobal.SESDK.userUnset(jsonObject); + } catch (error) { + console.log("An error occurred in _userUnset_wx:", error); + } + }, + _userDelete_dy: function(deleteType) { + try { + var _deleteType = UTF8ToString(deleteType); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin_userDelete :", " deleteType:", _deleteType); + + globalThis.SESDK.userDelete(_deleteType); + } catch (error) { + console.log("An error occurred in _userDelete_dy:", error); + } + }, + + _userDelete_wx: function(deleteType) { + try { + var _deleteType = UTF8ToString(deleteType); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin_userDelete :", " deleteType:", _deleteType); + + GameGlobal.SESDK.userDelete(_deleteType); + } catch (error) { + console.log("An error occurred in _userDelete_wx:", error); + } + }, + _setOnAttributionListener_dy: function () { + try { + globalThis.SESDK.setOnAttributionListener().then(function(result) { + if (typeof _isdebug!== "undefined" && _isdebug) + console.log( + "douyin _setOnAttributionListener", + JSON.stringify(result) + ); + SendMessage( + "SESDKBridge", + "setOnAttributionListenerFun", + JSON.stringify(result) + ); + }); + } catch (error) { + console.log( + "An error occurred in _setOnAttributionListener_dy:", + error + ); + } + }, + + _setOnAttributionListener_wx: function () { + try { + GameGlobal.SESDK.setOnAttributionListener().then(function(result) { + if (typeof _isdebug!== "undefined" && _isdebug) + console.log( + "weixin _setOnAttributionListener", + JSON.stringify(result) + ); + SendMessage( + "SESDKBridge", + "setOnAttributionListenerFun", + JSON.stringify(result) + ); + }); + } catch (error) { + console.log( + "An error occurred in _setOnAttributionListener_wx:", + error + ); + } + }, + + _getAttribution_dy: function () { + try { + globalThis.SESDK.getAttribution().then(function(result) { + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin _getAttribution", JSON.stringify(result)); + SendMessage("SESDKBridge", "getAttributionFun", JSON.stringify(result)); + }); + } catch (error) { + console.log("An error occurred in _getAttribution_dy:", error); + } + }, + + _getAttribution_wx: function () { + try { + GameGlobal.SESDK.getAttribution().then(function(result) { + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin _getAttribution", JSON.stringify(result)); + SendMessage("SESDKBridge", "getAttributionFun", JSON.stringify(result)); + }); + } catch (error) { + console.log("An error occurred in _getAttribution_wx:", error); + } + }, + _setPluginProperties_dy: function (paramJson) { + try { + var _paramJson = UTF8ToString(paramJson); + var jsonObject = {}; + if (_paramJson!= "") jsonObject = JSON.parse(_paramJson); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log( + "douyin_setPluginProperties :", + " paramJson:", + _paramJson + ); + globalThis.SESDK.setPluginProperties(jsonObject); + } catch (error) { + console.log("An error occurred in _setPluginProperties_dy:", error); + } + }, + + _setPluginProperties_wx: function (paramJson) { + try { + var _paramJson = UTF8ToString(paramJson); + var jsonObject = {}; + if (_paramJson!= "") jsonObject = JSON.parse(_paramJson); + + if (typeof _isdebug!== "undefined" && _isdebug) + console.log( + "weixin_setPluginProperties :", + " paramJson:", + _paramJson + ); + GameGlobal.SESDK.setPluginProperties(jsonObject); + } catch (error) { + console.log("An error occurred in _setPluginProperties_wx:", error); + } + }, + + _getDistinct_dy: function () { + try { + var distinct = "unknown"; + + globalThis.SESDK.getDistinct().then(function(data) { + distinct = JSON.stringify(data.result); + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("douyin _getDistinct ", distinct); + + SendMessage('SESDKBridge', 'getDistinctFun', distinct); + }); + } catch (error) { + console.log("An error occurred in _getDistinct_dy:", error); + } + }, + + _getDistinct_wx: function () { + try { + var distinct = "unknown"; + + GameGlobal.SESDK.getDistinct().then(function(data) { + distinct = JSON.stringify(data.result); + if (typeof _isdebug!== "undefined" && _isdebug) + console.log("weixin _getDistinct ", distinct); + + SendMessage('SESDKBridge', 'getDistinctFun', distinct); + }); + } catch (error) { + console.log("An error occurred in _getDistinct_wx:", error); + } + }, + + + }); + \ No newline at end of file diff --git a/Blacksmith/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib.meta b/Blacksmith/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib.meta new file mode 100644 index 00000000..9344ec41 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib.meta @@ -0,0 +1,32 @@ +fileFormatVersion: 2 +guid: 67fd0f5cf8c0047c3a7347041a7577d8 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + WebGL: WebGL + second: + enabled: 1 + settings: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Resources.meta b/Blacksmith/Assets/SEExportedGame/Resources.meta new file mode 100644 index 00000000..033b6a39 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Resources.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4c0742733c10d407dac9897b13010b12 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Resources/SESDKBridge.prefab b/Blacksmith/Assets/SEExportedGame/Resources/SESDKBridge.prefab new file mode 100644 index 00000000..ef0f9ef4 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Resources/SESDKBridge.prefab @@ -0,0 +1,46 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &6828635908599087981 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6828635908599087983} + - component: {fileID: 6828635908599087982} + m_Layer: 0 + m_Name: SESDKBridge + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6828635908599087983 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6828635908599087981} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -154.9992, y: 2068.0544, z: -6.8026385} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &6828635908599087982 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6828635908599087981} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ec5e9a79ed68d4f7ebc09d059aa9a757, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Blacksmith/Assets/SEExportedGame/Resources/SESDKBridge.prefab.meta b/Blacksmith/Assets/SEExportedGame/Resources/SESDKBridge.prefab.meta new file mode 100644 index 00000000..2abd4b9e --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Resources/SESDKBridge.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 61bf86c8e520541499c1a04fd9c75d50 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Script.meta b/Blacksmith/Assets/SEExportedGame/Script.meta new file mode 100644 index 00000000..2d1d114c --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Script.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9891fc9423dab4924ac467b6d3f5cce4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Script/Initialize.meta b/Blacksmith/Assets/SEExportedGame/Script/Initialize.meta new file mode 100644 index 00000000..c0f61960 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Script/Initialize.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ac32748d01039478590ff7b4ed973c4c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Script/Initialize/Initialize.cs b/Blacksmith/Assets/SEExportedGame/Script/Initialize/Initialize.cs new file mode 100644 index 00000000..9f3b640b --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Script/Initialize/Initialize.cs @@ -0,0 +1,16 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Initialize : MonoBehaviour +{ + [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] + static void Initializes() + { + var SESDKBridge = Instantiate(Resources.Load("SESDKBridge")); + SESDKBridge.name = "SESDKBridge"; + DontDestroyOnLoad(SESDKBridge); + + } +} + diff --git a/Blacksmith/Assets/SEExportedGame/Script/Initialize/Initialize.cs.meta b/Blacksmith/Assets/SEExportedGame/Script/Initialize/Initialize.cs.meta new file mode 100644 index 00000000..7e280359 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Script/Initialize/Initialize.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 81015fd8e60cb47c7a31584b5b752784 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Script/SESDKBridge.cs b/Blacksmith/Assets/SEExportedGame/Script/SESDKBridge.cs new file mode 100644 index 00000000..4ddd8aef --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Script/SESDKBridge.cs @@ -0,0 +1,1786 @@ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Runtime.InteropServices; +using Newtonsoft.Json; +using UnityEngine; +using SolarEngine.Singleton; + + +namespace SolarEngine +{ + public class SESDKBridge : SingletonMonoBehaviour + { + private string version = "1.0.6"; + + + public const string WishlistType_DEFAULT = "default"; + public const string WishlistType_MY = "my"; + public const string WishlistType_DESKTOP = "desktop"; + public const string WishlistType_OTHERS = "others"; + + public const string ShareTarget_APP_MESSAGE = "APP_MESSAGE"; + public const string ShareTarget_TIME_LINE = "TIME_LINE"; + + +#if !UNITY_EDITOR&&(SE_DG||SE_WG) + + + [DllImport("__Internal")] + private static extern void _log(bool isdebug); + + [DllImport("__Internal")] + private static extern void _ready(); +#if SE_DG + [DllImport("__Internal")] + private static extern void _prevInit_dy(string appkey); + [DllImport("__Internal")] + private static extern void _init_dy(string initParams); + [DllImport("__Internal")] + private static extern void _abtestuse_dy(); + [DllImport("__Internal")] + private static extern void _setRemoteDefaultConfig_dy(string config); + [DllImport("__Internal")] + private static extern void _setRemoteConfigEventProperties_dy(string properties); + [DllImport("__Internal")] + private static extern void _setRemoteConfigUserProperties_dy(string properties); + [DllImport("__Internal")] + private static extern string _fastFetchRemoteConfig_dy(string key); + [DllImport("__Internal")] + private static extern void _asyncFetchRemoteConfig_dy(string key); + [DllImport("__Internal")] + private static extern void _setVisitorId_dy(string visitorId); + [DllImport("__Internal")] + private static extern string _getVisitorId_dy(); + [DllImport("__Internal")] + private static extern void _login_dy(string accountId); + [DllImport("__Internal")] + private static extern string _getAccountId_dy(); + [DllImport("__Internal")] + private static extern void _logout_dy(); + [DllImport("__Internal")] + private static extern void _setSuperProperties_dy(string propertiesJson); + [DllImport("__Internal")] + private static extern void _unsetSuperProperty_dy(string key); + [DllImport("__Internal")] + private static extern void _clearSuperProperties_dy(); + [DllImport("__Internal")] + private static extern void _setPresetEvent_dy(string eventType, string properties); + [DllImport("__Internal")] + private static extern void _setChannel_dy(string channel); + [DllImport("__Internal")] + private static extern void _setReferrerTitle_dy(string referrer_title); + [DllImport("__Internal")] + private static extern void _setXcxPageTitle_dy(string page_title); + [DllImport("__Internal")] + private static extern void _trackAdImpression_dy(string data); + [DllImport("__Internal")] + private static extern void _trackAdClick_dy(string data); + [DllImport("__Internal")] + private static extern void _trackIAP_dy(string data); + [DllImport("__Internal")] + private static extern void _trackAppAttr_dy(string data); + [DllImport("__Internal")] + private static extern void _trackOrder_dy(string data); + [DllImport("__Internal")] + private static extern void _trackRegister_dy(string data); + [DllImport("__Internal")] + private static extern void _trackLogin_dy(string data); + [DllImport("__Internal")] + private static extern void _track_dy(string eventName, string data); + [DllImport("__Internal")] + private static extern void _eventStart_dy(string eventName); + [DllImport("__Internal")] + private static extern void _eventFinish_dy(string eventName, string data); + [DllImport("__Internal")] + private static extern void _userInit_dy(string userdata); + [DllImport("__Internal")] + private static extern void _userUpdate_dy(string Update); + [DllImport("__Internal")] + private static extern void _userAdd_dy(string userAdd); + [DllImport("__Internal")] + private static extern void _userAppend_dy(string userAppend); + [DllImport("__Internal")] + private static extern void _userUnset_dy(string userUnset); + [DllImport("__Internal")] + private static extern void _userDelete_dy(string deleteType); + [DllImport("__Internal")] + private static extern void _setOnAttributionListener_dy(); + [DllImport("__Internal")] + private static extern void _getAttribution_dy(); + [DllImport("__Internal")] + private static extern void _setPluginProperties_dy(string paramJson); + [DllImport("__Internal")] + private static extern void _getDistinct_dy(); +#elif SE_WG + [DllImport("__Internal")] + private static extern void _prevInit_wx(string appkey); + + [DllImport("__Internal")] + private static extern void _init_wx(string initParams); + + [DllImport("__Internal")] + private static extern void _abtestuse_wx(); + + [DllImport("__Internal")] + private static extern void _setRemoteDefaultConfig_wx(string config); + + [DllImport("__Internal")] + private static extern void _setRemoteConfigEventProperties_wx(string properties); + + [DllImport("__Internal")] + private static extern void _setRemoteConfigUserProperties_wx(string properties); + + [DllImport("__Internal")] + private static extern string _fastFetchRemoteConfig_wx(string key); + + [DllImport("__Internal")] + private static extern void _asyncFetchRemoteConfig_wx(string key); + + [DllImport("__Internal")] + private static extern void _setVisitorId_wx(string visitorId); + + [DllImport("__Internal")] + private static extern string _getVisitorId_wx(); + + [DllImport("__Internal")] + private static extern void _login_wx(string accountId); + + [DllImport("__Internal")] + private static extern string _getAccountId_wx(); + + [DllImport("__Internal")] + private static extern void _logout_wx(); + + [DllImport("__Internal")] + private static extern void _setSuperProperties_wx(string propertiesJson); + + [DllImport("__Internal")] + private static extern void _unsetSuperProperty_wx(string key); + + [DllImport("__Internal")] + private static extern void _clearSuperProperties_wx(); + + [DllImport("__Internal")] + private static extern void _setPresetEvent_wx(string eventType, string properties); + + [DllImport("__Internal")] + private static extern void _setChannel_wx(string channel); + + [DllImport("__Internal")] + private static extern void _setReferrerTitle_wx(string referrer_title); + + [DllImport("__Internal")] + private static extern void _setXcxPageTitle_wx(string page_title); + + [DllImport("__Internal")] + private static extern void _trackAdImpression_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackAdClick_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackIAP_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackAppAttr_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackOrder_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackRegister_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackLogin_wx(string data); + + [DllImport("__Internal")] + private static extern void _track_wx(string eventName, string data); + + [DllImport("__Internal")] + private static extern void _eventStart_wx(string eventName); + + [DllImport("__Internal")] + private static extern void _eventFinish_wx(string eventName, string data); + + [DllImport("__Internal")] + private static extern void _userInit_wx(string userdata); + + [DllImport("__Internal")] + private static extern void _userUpdate_wx(string Update); + + [DllImport("__Internal")] + private static extern void _userAdd_wx(string userAdd); + + [DllImport("__Internal")] + private static extern void _userAppend_wx(string userAppend); + + [DllImport("__Internal")] + private static extern void _userUnset_wx(string userUnset); + + [DllImport("__Internal")] + private static extern void _userDelete_wx(string deleteType); + + [DllImport("__Internal")] + private static extern void _setOnAttributionListener_wx(); + + [DllImport("__Internal")] + private static extern void _getAttribution_wx(); + + [DllImport("__Internal")] + private static extern void _setPluginProperties_wx(string paramJson); + + [DllImport("__Internal")] + private static extern void _getDistinct_wx(); + + + [DllImport("__Internal")] + private static extern void _trackReActive_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackAddToWishlist_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackShare_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackCreateRole_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackTutorialFinish_wx(string data); + + + + [DllImport("__Internal")] + private static extern void _trackUpdateLevel_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackViewContentMall_wx(string data); + + [DllImport("__Internal")] + private static extern void _trackViewContentActivity_wx(string data); + +#endif + + +#endif + public delegate void DistinctCalllback(Distinct result); + + private DistinctCalllback distinctCalllback = null; + + public delegate void AttributionCalllback(string result); + + AttributionCalllback setattributioncallback = null; + AttributionCalllback getattributioncallback = null; + + + public delegate void InitReadyCalllBack(); + + public InitReadyCalllBack initReadyCalllBack = null; + + + public delegate void AsyncFetchRemoteConfigCallBack(object result); + + //AsyncFetchRemoteConfigCallBack asyncFetchRemoteConfigCallBack= null; + + + private Dictionary asyncFetchRemoteConfigCallBacks = + new Dictionary(); + + private bool debug = false; + + /// + /// log开关 只能控制unity和桥接层文件 + /// + /// + public void log(bool isdebug) + { + try + { + debug = isdebug; +#if UNITY_EDITOR + return; +#elif SE_DG||SE_WG + _log(isdebug); +#endif + } + catch (Exception e) + { + Debug.LogError("log:" + e); + throw; + } + } + + public void Awake() + { +#if UNITY_EDITOR + return; + +#if SE_WG&&SE_DG + Debug.LogError("SE_WG and SE_DG can only have one at a time"); + return; + +#endif + +#endif + setPluginProperties(); + } + + /// + /// 预初始化 + /// + /// + public void prevInit(string appkey) + { +#if UNITY_EDITOR + return; + +#elif SE_WG + _prevInit_wx(appkey); +#elif SE_DG + _prevInit_dy(appkey); +#endif + } + + /// + /// 初始化 + /// + /// + public void init(InitParams initParams) + { + string json = JsonConvert.SerializeObject(initParams, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); + +#if UNITY_EDITOR + return; +#elif SE_WG + _init_wx(json); +#elif SE_DG + _init_dy(json); +#endif + } + + private void setPluginProperties() + { + try + { + Dictionary dict = new Dictionary + { + { "_sdk_type", "unity" }, + { "_sub_lib_version", version }, + }; + string paramJson = JsonConvert.SerializeObject(dict); + Debug.Log(paramJson); + +#if UNITY_EDITOR + return; + +#elif SE_WG + Debug.Log("_setPluginProperties_wx"); + _setPluginProperties_wx(paramJson); +#elif SE_DG + _setPluginProperties_dy(paramJson); +#endif + } + catch (Exception e) + { + Debug.LogError("setPluginProperties:" + e); + throw; + } + } + + public void setRemoteDefaultConfig(DefaultConfig[] defaultConfig) + { + try + { + string jsonString = JsonConvert.SerializeObject(defaultConfig); + if (debug) + Debug.Log(jsonString); + + +#if UNITY_EDITOR + return; +#elif SE_WG + _setRemoteDefaultConfig_wx(jsonString); +#elif SE_DG + _setRemoteDefaultConfig_dy(jsonString); +#endif + } + catch (Exception e) + { + Debug.LogError("setRemoteDefaultConfig:" + e); + throw; + } + } + + public void setRemoteConfigEventProperties(Dictionary properties) + { + try + { + string jsonString = JsonConvert.SerializeObject(properties); + if (debug) + Debug.Log(jsonString); + + +#if UNITY_EDITOR + return; +#elif SE_WG + _setRemoteConfigEventProperties_wx(jsonString); +#elif SE_DG + _setRemoteConfigEventProperties_dy(jsonString); +#endif + } + catch (Exception e) + { + Debug.LogError("setRemoteConfigEventProperties:" + e); + throw; + } + } + + public void setRemoteConfigUserProperties(Dictionary properties) + { + try + { + string jsonString = JsonConvert.SerializeObject(properties); + if (debug) + Debug.Log(jsonString); + +#if UNITY_EDITOR + return; +#elif SE_WG + _setRemoteConfigUserProperties_wx(jsonString); +#elif SE_DG + _setRemoteConfigUserProperties_dy(jsonString); +#endif + } + catch (Exception e) + { + Debug.LogError("setRemoteConfigUserProperties:" + e); + throw; + } + } + + public string fastFetchRemoteConfig(string key) + { + try + { +#if UNITY_EDITOR + return""; +#elif SE_WG + return _fastFetchRemoteConfig_wx(key); +#elif SE_DG + return _fastFetchRemoteConfig_dy(key); + +#endif + } + catch (Exception e) + { + Debug.LogError("fastFetchRemoteConfig:" + e); + throw; + } + + return ""; + } + + public void asyncFetchRemoteConfig(string key, AsyncFetchRemoteConfigCallBack callBack) + { + try + { + //asyncFetchRemoteConfigCallBack = callBack; + if (asyncFetchRemoteConfigCallBacks.ContainsKey(key)) + { + asyncFetchRemoteConfigCallBacks[key] = callBack; + } + else + { + asyncFetchRemoteConfigCallBacks.Add(key, callBack); + } +#if UNITY_EDITOR + return; +#elif SE_WG + _asyncFetchRemoteConfig_wx(key); +#elif SE_DG + _asyncFetchRemoteConfig_dy(key); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + + /// + /// 加载在线参数SDK插件 + /// + public void abtestuse() + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _abtestuse_wx(); +#elif SE_DG + _abtestuse_dy(); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + /// + /// + /// + /// + public void setVisitorId(string visitorId) + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _setVisitorId_wx(visitorId); +#elif SE_DG + _setVisitorId_dy(visitorId); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public string getVisitorId() + { + try + { +#if UNITY_EDITOR + return""; +#elif SE_WG + return _getVisitorId_wx(); +#elif SE_DG + return _getVisitorId_dy(); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + + return ""; + } + + public void getDistinct(DistinctCalllback calllback) + { + try + { + distinctCalllback = calllback; +#if UNITY_EDITOR + return; +#elif SE_WG + _getDistinct_wx(); +#elif SE_DG + _getDistinct_dy(); +#endif + } + catch (Exception e) + { + Debug.LogError("getDistinct: " + e); + throw; + } + } + + public void login(string accountId) + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _login_wx(accountId); +#elif SE_DG + _login_dy(accountId); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public string getAccountId() + { + try + { +#if UNITY_EDITOR + return""; +#elif SE_WG + return _getAccountId_wx(); +#elif SE_DG + return _getAccountId_dy(); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + + return ""; + } + + public void logout() + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _logout_wx(); +#elif SE_DG + _logout_dy(); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void setSuperProperties(Dictionary properties = null) + { + try + { + string jsonString = JsonConvert.SerializeObject(properties); +#if UNITY_EDITOR + return; +#elif SE_WG + _setSuperProperties_wx(jsonString); +#elif SE_DG + _setSuperProperties_dy(jsonString); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void unsetSuperProperty(string key) + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _unsetSuperProperty_wx(key); +#elif SE_DG + _unsetSuperProperty_dy(key); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void clearSuperProperties() + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _clearSuperProperties_wx(); +#elif SE_DG + _clearSuperProperties_dy(); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void setPresetEvent(PresetEventType eventType, Dictionary properties = null) + { + try + { + string jsonString = JsonConvert.SerializeObject(properties); +#if UNITY_EDITOR + return; +#elif SE_WG + _setPresetEvent_wx(eventType.ToString(), jsonString); +#elif SE_DG + _setPresetEvent_dy(eventType.ToString(), jsonString); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void setChannel(string channel) + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _setChannel_wx(channel); +#elif SE_DG + _setChannel_dy(channel); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void setReferrerTitle(string referrer_title) + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _setReferrerTitle_wx(referrer_title); +#elif SE_DG + _setReferrerTitle_dy(referrer_title); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void setXcxPageTitle(string page_title) + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _setXcxPageTitle_wx(page_title); +#elif SE_DG + _setXcxPageTitle_dy(page_title); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackAdImpression(AdImpressionData data) + { + try + { + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackAdImpression_wx(json); +#elif SE_DG + _trackAdImpression_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackAdClick(AdClickData data) + { + try + { + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackAdClick_wx(json); +#elif SE_DG + _trackAdClick_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackIAP(IAPData data) + { + try + { + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackIAP_wx(json); +#elif SE_DG + _trackIAP_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackAppAttr(MpAttrData data) + { + try + { + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackAppAttr_wx(json); +#elif SE_DG + _trackAppAttr_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackOrder(OrderData data) + { + try + { + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackOrder_wx(json); +#elif SE_DG + _trackOrder_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackRegister(RegisterData data) + { + try + { + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackRegister_wx(json); +#elif SE_DG + _trackRegister_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackLogin(LoginData data) + { + try + { + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackLogin_wx(json); +#elif SE_DG + _trackLogin_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + + public void trackReActive(ReActiveData data) + { + try + { + + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackReActive_wx(json); +#elif SE_DG + Debug.Log("only wechat can use"); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackAddToWishlist(AddToWishlistData data) + { + try + { + + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackAddToWishlist_wx(json); +#elif SE_DG + Debug.Log("only wechat can use"); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + + public void trackShare(ShareData data) + { + try + { + + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackShare_wx(json); +#elif SE_DG + Debug.Log("only wechat can use"); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackCreateRole(CreateRoleData data) + { + try + { + + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackCreateRole_wx(json); +#elif SE_DG + Debug.Log("only wechat can use"); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + + + + public void trackTutorialFinish(TutorialFinishData data) + { + try + { + + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackTutorialFinish_wx(json); +#elif SE_DG + Debug.Log("only wechat can use"); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + + + public void trackUpdateLevel(UpdateLevelData data) + { + try + { + + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackUpdateLevel_wx(json); +#elif SE_DG + Debug.Log("only wechat can use"); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackViewContentMall(ViewContentMallData data) + { + try + { + + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackViewContentMall_wx(json); +#elif SE_DG + Debug.Log("only wechat can use"); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void trackViewContentActivity(ViewContentActivitData data) + { + try + { + + string json = JsonConvert.SerializeObject(data, Formatting.None, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); + + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _trackViewContentActivity_wx(json); +#elif SE_DG + Debug.Log("only wechat can use"); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + + public void track(string eventname, Dictionary data = null) + { + try + { + string json = JsonConvert.SerializeObject(data); + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _track_wx(eventname, json); +#elif SE_DG + _track_dy(eventname, json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void eventStart(string eventname) + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _eventStart_wx(eventname); +#elif SE_DG + _eventStart_dy(eventname); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void eventFinish(string eventname, Dictionary data = null) + { + try + { + string json = JsonConvert.SerializeObject(data); + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _eventFinish_wx(eventname, json); +#elif SE_DG + _eventFinish_dy(eventname, json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void userInit(Dictionary data) + { + try + { + string json = JsonConvert.SerializeObject(data); + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _userInit_wx(json); +#elif SE_DG + _userInit_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void userUpdate(Dictionary data) + { + try + { + string json = JsonConvert.SerializeObject(data); + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _userUpdate_wx(json); +#elif SE_DG + _userUpdate_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void userAdd(Dictionary data) + { + try + { + string json = JsonConvert.SerializeObject(data); + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _userAdd_wx(json); +#elif SE_DG + _userAdd_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void userAppend(Dictionary data) + { + try + { + string json = JsonConvert.SerializeObject(data); + if (debug) + Debug.Log("JSON: " + json); +#if UNITY_EDITOR + return; +#elif SE_WG + _userAppend_wx(json); +#elif SE_DG + _userAppend_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + + public void userUnset(List list) + { + try + { + string json = JsonConvert.SerializeObject(list); +#if UNITY_EDITOR + return; +#elif SE_WG + _userUnset_wx(json); +#elif SE_DG + _userUnset_dy(json); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public void userDelete(UserDeleteType type) + { + try + { +#if UNITY_EDITOR + return; +#elif SE_WG + _userDelete_wx(type.ToString()); +#elif SE_DG + _userDelete_dy(type.ToString()); +#endif + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + + public void getAttribution(AttributionCalllback calllback) + { + try + { + getattributioncallback = calllback; +#if UNITY_EDITOR + return; +#elif SE_WG + _getAttribution_wx(); +#elif SE_DG + _getAttribution_dy(); +#endif + } + catch (Exception e) + { + Debug.LogError("getAttribution:" + e); + throw; + } + } + + + public void setOnAttributionListener(AttributionCalllback calllback) + { + try + { + setattributioncallback = calllback; +#if UNITY_EDITOR + return; +#elif SE_WG + _setOnAttributionListener_wx(); +#elif SE_DG + _setOnAttributionListener_dy(); +#endif + } + catch (Exception e) + { + Debug.LogError("setOnAttributionListener:" + e); + throw; + } + } + + public void addInitReadyCallback(InitReadyCalllBack calllBack) + { + try + { + initReadyCalllBack += calllBack; +#if UNITY_EDITOR + return; + +#elif SE_DG||SE_WG + _ready(); +#endif + } + catch (Exception e) + { + Debug.LogError("initReady:" + e); + throw; + } + } + + + public void removeInitReadyCallback(InitReadyCalllBack callback) + { + initReadyCalllBack -= callback; + } + + public void readyFun() + { + initReadyCalllBack?.Invoke(); + } + + private void setOnAttributionListenerFun(string result) + { + if (debug) + Debug.Log("SetOnAttributionFun : " + result); + setattributioncallback?.Invoke(result); + } + + private void getAttributionFun(string result) + { + if (debug) + Debug.Log("GetOnAttributionFun : " + result); + + getattributioncallback?.Invoke(result); + } + + public void asyncFetchRemoteConfigFun(string result) + { + try + { + Async asyncFetch = JsonConvert.DeserializeObject(result); + + if (asyncFetch == null) + return; + if (asyncFetchRemoteConfigCallBacks.ContainsKey(asyncFetch.key)) + { + asyncFetchRemoteConfigCallBacks[asyncFetch.key]?.Invoke(asyncFetch.value); + asyncFetchRemoteConfigCallBacks.Remove(asyncFetch.key); + } + else + { + // 键不存在 + Debug.Log("未赋值"); + } + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + + private void getDistinctFun(string result) + { + try + { + Distinct distinct = JsonUtility.FromJson(result); + distinctCalllback?.Invoke(distinct); + } + catch (Exception e) + { + Console.WriteLine(e); + throw; + } + } + } + + [System.Serializable] + public class Async + { + public string key; + public object value; + } + + [System.Serializable] + public class InitParams + { + public string userId; + public string appKey; + public string unionid; + public string openid; +#if SE_DG + public string anonymous_openid; +#endif + public InitConfig config; + } + + [System.Serializable] + public class InitConfig + { + public bool debugModel; + public bool logEnabled; + public RemoteConfig remoteConfig; + + + public bool isInitTencentAdvertisingGameSDK; + public int reportingToTencentSdk = 3; + + public TencentSDKInitParams tencentAdvertisingGameSDKInitParams; + + + } + + public class TencentSDKInitParams + { + public int user_action_set_id; + public string secret_key; + public string appid; + + } + + + + + + [System.Serializable] + public class RemoteConfig + { + public int pollingInterval; + public bool enable; + public int mergeType; + public Dictionary customIDProperties; + public Dictionary customIDEventProperties; + public Dictionary customIDUserProperties; + public long requestTimeout; + } + + [System.Serializable] + public class DefaultConfig + { + public string name; + public int type; + public object value; + } + + + [System.Serializable] + public class AdImpressionData + { + public string adNetworkPlatform; + public int adType; + public string adNetworkAppID; + public string adId; + public string mediationPlatform; + public double ecpm; + public string currency; + public bool rendered; + public Dictionary customProperties; + } + + + [System.Serializable] + public class AdClickData + { + public string adNetworkPlatform; + public int adType; + public string adId; + public string mediationPlatform; + public Dictionary customProperties; + } + + [System.Serializable] + public class IAPData + { + public int reportingToTencentSdk; + + public string orderId; + public double payAmount; + public string currencyType; + public string payType; + public string productID; + public string productName; + public int productCount; + public int payStatus; + public string failReason; + public Dictionary customProperties; + } + + + [System.Serializable] + public class MpAttrData + { + public string adNetwork; + public string subChannel; + public string adAccountID; + public string adAccountName; + public string adCampaignID; + public string adCampaignName; + public string adOfferID; + public string adOfferName; + public string adCreativeID; + public string adCreativeName; + public string attributionPlatform; + public Dictionary customProperties; + } + + [System.Serializable] + public class OrderData + { + public string orderId; + public double payAmount; + public string currencyType; + public string payType; + public string status; + public Dictionary customProperties; + } + + [System.Serializable] + public class LoginData + { + public string loginType; + public string loginStatus; + public Dictionary customProperties; + } + + [System.Serializable] + public class RegisterData + { + public int reportingToTencentSdk; + public string regType; + public string registerStatus; + public Dictionary customProperties; + } + + + [System.Serializable] + public class ReActiveData + { + public int reportingToTencentSdk; + public int backFlowDay; + public Dictionary customProperties; + + } + + + [System.Serializable] + public class AddToWishlistData + { + public int reportingToTencentSdk; + public string addToWishlistType; + public Dictionary customProperties; + + } + + + [System.Serializable] + public class ShareData + { + public int reportingToTencentSdk; + public string mpShareTarget; + public Dictionary customProperties; + + } + + [System.Serializable] + public class CreateRoleData + { + public int reportingToTencentSdk; + public string mpRoleName; + + } + + [System.Serializable] + public class TutorialFinishData + { + public int reportingToTencentSdk; + + + } + + [System.Serializable] + public class UpdateLevelData + { + public int reportingToTencentSdk; + public int beforeUpgrade; + public int afterUpgrade; + public Dictionary customProperties; + + + } + + + [System.Serializable] + public class ViewContentMallData + { + public int reportingToTencentSdk; + public Dictionary customProperties; + + + } + + [System.Serializable] + public class ViewContentActivitData + { + public int reportingToTencentSdk; + public Dictionary customProperties; + + + } + + + + [System.Serializable] + public class Distinct + { + public string distinct_id; + public string distinct_id_type; + } + + public enum PresetEventType + { + mpInstall, + mpStart, + mpEnd, + all + } + + + + + +public enum UserDeleteType + { + userDeleteByAccountId, + userDeleteByVisitorId + } + + +} \ No newline at end of file diff --git a/Blacksmith/Assets/SEExportedGame/Script/SESDKBridge.cs.meta b/Blacksmith/Assets/SEExportedGame/Script/SESDKBridge.cs.meta new file mode 100644 index 00000000..19681f07 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Script/SESDKBridge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec5e9a79ed68d4f7ebc09d059aa9a757 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Script/ThirdParty.meta b/Blacksmith/Assets/SEExportedGame/Script/ThirdParty.meta new file mode 100644 index 00000000..09261dd4 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Script/ThirdParty.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5546a78859f51456db4f10d75f01c677 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs b/Blacksmith/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs new file mode 100644 index 00000000..ebf6e7b0 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs @@ -0,0 +1,81 @@ +using UnityEngine; + +namespace SolarEngine.Singleton +{ + public class SingletonMonoBehaviour : MonoBehaviour where T : SingletonMonoBehaviour + { + public static T Instance + { + get + { + return SingletonMonoBehaviour.CreateInstance(); + } + } + + public static T CreateInstance() + { + if (SingletonMonoBehaviour.instance == null) + { + SingletonMonoBehaviour.instance = (T)((object)UnityEngine.Object.FindObjectOfType(typeof(T))); + if (SingletonMonoBehaviour.instance == null) + { + string name = typeof(T).Name; + UnityEngine.Debug.LogFormat("Create singleton object: {0}", new object[] + { + name + }); + GameObject gameObject = new GameObject(name); + Object.DontDestroyOnLoad(gameObject); + SingletonMonoBehaviour.instance = gameObject.AddComponent(); + if (SingletonMonoBehaviour.instance == null) + { + UnityEngine.Debug.LogWarning("Can't find singleton object: " + typeof(T).Name); + UnityEngine.Debug.LogError("Can't create singleton object: " + typeof(T).Name); + return (T)((object)null); + } + } + } + return SingletonMonoBehaviour.instance; + } + + public static bool IsInstantiated() + { + return SingletonMonoBehaviour.instance != null; + } + + protected void Awake() + { + if (this.CheckInstance()) + { + this.AwakeValidly(); + } + } + + protected virtual void AwakeValidly() + { + } + + private bool CheckInstance() + { + if (SingletonMonoBehaviour.instance == null) + { + SingletonMonoBehaviour.instance = (T)((object)this); + DontDestroyOnLoad(this.gameObject); + return true; + } + if (SingletonMonoBehaviour.Instance == this) + { + return true; + } + UnityEngine.Object.Destroy(this); + return false; + } + + protected void DontDestroyOnLoad() + { + UnityEngine.Object.DontDestroyOnLoad(base.gameObject); + } + + private static T instance; + } +} \ No newline at end of file diff --git a/Blacksmith/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs.meta b/Blacksmith/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs.meta new file mode 100644 index 00000000..c9154349 --- /dev/null +++ b/Blacksmith/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 34a3fa80069c345108a80cf77889c038 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Scenes/SampleScene.unity b/Blacksmith/Assets/Scenes/SampleScene.unity index 30f96916..74d9b19b 100644 --- a/Blacksmith/Assets/Scenes/SampleScene.unity +++ b/Blacksmith/Assets/Scenes/SampleScene.unity @@ -930,7 +930,7 @@ RectTransform: 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: 161.0001, y: 6} + m_AnchoredPosition: {x: 134.0001, y: -113.99996} m_SizeDelta: {x: 185.4957, y: 47.9699} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &38021233 @@ -3557,7 +3557,7 @@ RectTransform: m_Children: [] m_Father: {fileID: 441650790} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5403466} + m_AnchorMin: {x: 0, y: 0.54034656} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} @@ -5249,7 +5249,7 @@ MonoBehaviour: m_Font: {fileID: 12800000, guid: 758156b62fb2a82498f5a3df5c0cb8a2, type: 3} m_FontSize: 47 m_FontStyle: 0 - m_BestFit: 0 + m_BestFit: 1 m_MinSize: 10 m_MaxSize: 67 m_Alignment: 4 @@ -7117,7 +7117,7 @@ RectTransform: 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: -1, y: -117} + m_AnchoredPosition: {x: -69.00002, y: -117} m_SizeDelta: {x: 185.4957, y: 47.9699} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &268124795 @@ -7147,7 +7147,7 @@ MonoBehaviour: m_BestFit: 0 m_MinSize: 4 m_MaxSize: 40 - m_Alignment: 0 + m_Alignment: 2 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 @@ -8337,7 +8337,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &318295972 RectTransform: m_ObjectHideFlags: 0 @@ -14634,7 +14634,7 @@ MonoBehaviour: m_TargetGraphic: {fileID: 1800934143} m_HandleRect: {fileID: 1800934142} m_Direction: 0 - m_Value: 0 + m_Value: 1 m_Size: 1 m_NumberOfSteps: 0 m_OnValueChanged: @@ -16188,7 +16188,7 @@ RectTransform: 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: 161.00003, y: 5.999939} + m_AnchoredPosition: {x: 134.00003, y: -114.00002} m_SizeDelta: {x: 185.4957, y: 47.9699} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &617669660 @@ -20346,7 +20346,7 @@ RectTransform: 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: 161.00003, y: 5.999939} + m_AnchoredPosition: {x: 134, y: -114} m_SizeDelta: {x: 185.4957, y: 47.9699} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &759902695 @@ -21707,7 +21707,7 @@ RectTransform: 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: -1, y: -117} + m_AnchoredPosition: {x: -69, y: -117} m_SizeDelta: {x: 185.4957, y: 47.9699} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &812074516 @@ -21737,7 +21737,7 @@ MonoBehaviour: m_BestFit: 0 m_MinSize: 4 m_MaxSize: 40 - m_Alignment: 0 + m_Alignment: 2 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 @@ -23720,7 +23720,7 @@ RectTransform: 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: -1, y: -117} + m_AnchoredPosition: {x: -69.00002, y: -117} m_SizeDelta: {x: 185.4957, y: 47.9699} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &904068408 @@ -23750,7 +23750,7 @@ MonoBehaviour: m_BestFit: 0 m_MinSize: 4 m_MaxSize: 40 - m_Alignment: 0 + m_Alignment: 2 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 @@ -24196,7 +24196,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &924463314 RectTransform: m_ObjectHideFlags: 0 @@ -29056,7 +29056,7 @@ MonoBehaviour: m_HandleRect: {fileID: 147337033} m_Direction: 2 m_Value: 1 - m_Size: 0.45965338 + m_Size: 0.45965344 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: @@ -43026,7 +43026,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &1613204639 RectTransform: m_ObjectHideFlags: 0 @@ -48798,7 +48798,7 @@ RectTransform: 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: 161, y: 5.999939} + m_AnchoredPosition: {x: 134, y: -114.00002} m_SizeDelta: {x: 185.4957, y: 47.9699} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1784448932 @@ -56243,7 +56243,7 @@ RectTransform: 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: -1, y: -117} + m_AnchoredPosition: {x: -69.00002, y: -117} m_SizeDelta: {x: 185.4957, y: 47.9699} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &2104256958 @@ -56273,7 +56273,7 @@ MonoBehaviour: m_BestFit: 0 m_MinSize: 4 m_MaxSize: 40 - m_Alignment: 0 + m_Alignment: 2 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 @@ -58482,6 +58482,20 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &5044381467228394132 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7996413628492283762} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aa3bca8dd40d884080174dd0a1530a5, type: 3} + m_Name: + m_EditorClassIdentifier: + appKey: 70e51086dbe47f46 + userId: 71de615564c8a231 --- !u!1001 &5136891001902902207 PrefabInstance: m_ObjectHideFlags: 0 @@ -58539,6 +58553,21 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: e79e977c5abd5654e9edb5c1aaa82035, type: 3} +--- !u!4 &5511837539628174347 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7996413628492283762} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 752.8704, y: 690.9177, z: 12.530368} + 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} --- !u!1 &7935152798349843530 GameObject: m_ObjectHideFlags: 0 @@ -58568,6 +58597,23 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 117834e49a8abf346be608df5e7ba61b, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!1 &7996413628492283762 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5511837539628174347} + - component: {fileID: 5044381467228394132} + m_Layer: 0 + m_Name: Dot + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 @@ -58581,3 +58627,4 @@ SceneRoots: - {fileID: 5136891001902902207} - {fileID: 1446036770} - {fileID: 1435906065164780272} + - {fileID: 5511837539628174347} diff --git a/Blacksmith/Assets/Script/Battle/BattleManager.cs b/Blacksmith/Assets/Script/Battle/BattleManager.cs index 3a1da8e6..55cf81af 100644 --- a/Blacksmith/Assets/Script/Battle/BattleManager.cs +++ b/Blacksmith/Assets/Script/Battle/BattleManager.cs @@ -289,6 +289,17 @@ public class BattleManager : MonoBehaviour exp = 0; expLevel = 1; maxExp = JsonTab.Instance.tables.ExpRogue.Get(expLevel).Developexp; + if (playerItems!=null) + { + foreach (var p in playerItems) + { + if (p.player!=null) + { + PrefabPool.ins.RecycleObj(p.player.gameObject); + p.player = null; + } + } + } playerItems = new PlayerRunState[playerParent.Length]; for (int i = 0; i < playerParent.Length; i++) { diff --git a/Blacksmith/Assets/Script/DataManager.cs b/Blacksmith/Assets/Script/DataManager.cs index 6bae6f36..0dc1389a 100644 --- a/Blacksmith/Assets/Script/DataManager.cs +++ b/Blacksmith/Assets/Script/DataManager.cs @@ -57,8 +57,6 @@ public static class DataManager public static void SetTime(string key) { var ts = GetTimeStamp(DateTime.Now); - Debug.LogError(ts); - Debug.LogError(ConvertIntDatetime(ts)); SaveValue("time" + key, ts); } @@ -297,13 +295,13 @@ public static class DataManager } - private static void SetPrefab(string key ,int num) + public static void SetPrefab(string key ,int num) { SaveValue(key,num); } - private static int GetPrefab(string key) + public static int GetPrefab(string key) { return (int)LoadValue(typeof(int),key); } diff --git a/Blacksmith/Assets/Script/GameSystem.cs b/Blacksmith/Assets/Script/GameSystem.cs index 65401647..17ed5744 100644 --- a/Blacksmith/Assets/Script/GameSystem.cs +++ b/Blacksmith/Assets/Script/GameSystem.cs @@ -69,7 +69,7 @@ public class GameSystem : MonoBehaviour tab = new JsonTab(); tab.InitData(); abManager.InitAsset((() => { })); - + DotData.ins.SendEvent("a11101",""); if (!DataManager.GetFirst()) { AddDicData(); @@ -202,6 +202,7 @@ public class GameSystem : MonoBehaviour public void GoldRest() { goldCoin += playingGold; + DataManager.AddItem(2,playingGold); forgePanel.ResetGold(); } @@ -211,6 +212,7 @@ public class GameSystem : MonoBehaviour public void DoubleGoldRest() { goldCoin += (playingGold * 2); + DataManager.AddItem(2,playingGold * 2); forgePanel.ResetGold(); } diff --git a/Blacksmith/Assets/Script/SDK.meta b/Blacksmith/Assets/Script/SDK.meta new file mode 100644 index 00000000..efddd3b9 --- /dev/null +++ b/Blacksmith/Assets/Script/SDK.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c2e3c477de06cc840a409e73b044918e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Script/SDK/DotData.cs b/Blacksmith/Assets/Script/SDK/DotData.cs new file mode 100644 index 00000000..d494c950 --- /dev/null +++ b/Blacksmith/Assets/Script/SDK/DotData.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using SolarEngine; +using UnityEngine; +using UnityEngine.Serialization; + +public class DotData : MonoBehaviour +{ + public static DotData ins; + [FormerlySerializedAs("应用的appKey")] [SerializeField] + private string appKey; + + [FormerlySerializedAs("账户的userCode")] [SerializeField] + private string userId; + + private void Awake() + { + if (ins!=null) + { + Destroy(gameObject); + return; + } + ins = this; + DontDestroyOnLoad(gameObject); + SESDKBridge.Instance.prevInit(appKey); + InitParams data = new InitParams(); + data.userId = userId; + data.appKey = appKey; + SESDKBridge.Instance.init(data); + } + + public void InitReadyCallback(SESDKBridge.InitReadyCalllBack ReadyCalllBack1) + { + SESDKBridge.Instance.addInitReadyCallback(ReadyCalllBack1); + } + + public void SendEvent(string key,string v) + { + var properties = new Dictionary(); + properties[key] = v; + SESDKBridge.Instance.track(key,properties); + } + + public void SendEvent(string key, object v) + { + var properties = new Dictionary(); + properties[key] = v; + SESDKBridge.Instance.track(key,properties); + } +} diff --git a/Blacksmith/Assets/Script/SDK/DotData.cs.meta b/Blacksmith/Assets/Script/SDK/DotData.cs.meta new file mode 100644 index 00000000..abf37676 --- /dev/null +++ b/Blacksmith/Assets/Script/SDK/DotData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1aa3bca8dd40d884080174dd0a1530a5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/Script/UI/ForgePanel.cs b/Blacksmith/Assets/Script/UI/ForgePanel.cs index 8af463a3..1b184bed 100644 --- a/Blacksmith/Assets/Script/UI/ForgePanel.cs +++ b/Blacksmith/Assets/Script/UI/ForgePanel.cs @@ -99,6 +99,19 @@ public class ForgePanel : MonoBehaviour void GameStart() { + if (DataManager.GetPrefab("openDoor")==0) + { + DotData.ins.SendEvent("a11103",""); + } + if (DataManager.GetPrefab("openDoor")==1) + { + DotData.ins.SendEvent("a11104",""); + } + if (DataManager.GetPrefab("openDoor")==3) + { + DotData.ins.SendEvent("a11105",""); + } + DataManager.SetPrefab("openDoor",DataManager.GetPrefab("openDoor")+1); GameSystem.ins.StartNpcData(); startButton.gameObject.SetActive(false); } diff --git a/Blacksmith/Assets/Script/UI/StorePanel/PrizeDrawItem.cs b/Blacksmith/Assets/Script/UI/StorePanel/PrizeDrawItem.cs index a2349b57..d9e1cc38 100644 --- a/Blacksmith/Assets/Script/UI/StorePanel/PrizeDrawItem.cs +++ b/Blacksmith/Assets/Script/UI/StorePanel/PrizeDrawItem.cs @@ -49,7 +49,70 @@ public class PrizeDrawItem : MonoBehaviour { if (DataManager.GetItem(paizeData.Boxtype)>=paizeData.Boxcost) { - int w = _lotteryPrizesDatas.Sum(prizesData => prizesData.AwardProbability); + switch (id) + { + case 104: + DataManager.SetPrefab("dot104",DataManager.GetPrefab("dot104")+1); + if (DataManager.GetPrefab("dot104")==1) + { + DotData.ins.SendEvent("a11109",""); + } + if (DataManager.GetPrefab("dot104")==2) + { + DotData.ins.SendEvent("a11110",""); + } + if (DataManager.GetPrefab("dot104")==4) + { + DotData.ins.SendEvent("a11111",""); + } + break; + case 103: + DataManager.SetPrefab("dot103",DataManager.GetPrefab("dot103")+1); + if (DataManager.GetPrefab("dot103")==1) + { + DotData.ins.SendEvent("a11112",""); + } + if (DataManager.GetPrefab("dot103")==2) + { + DotData.ins.SendEvent("a11113",""); + } + if (DataManager.GetPrefab("dot103")==4) + { + DotData.ins.SendEvent("a11114",""); + } + break; + case 102: + DataManager.SetPrefab("dot102",DataManager.GetPrefab("dot102")+1); + if (DataManager.GetPrefab("dot102")==1) + { + DotData.ins.SendEvent("a11115",""); + } + if (DataManager.GetPrefab("dot102")==2) + { + DotData.ins.SendEvent("a11116",""); + } + if (DataManager.GetPrefab("dot102")==4) + { + DotData.ins.SendEvent("a11117",""); + } + break; + case 101: + DataManager.SetPrefab("dot101",DataManager.GetPrefab("dot101")+1); + if (DataManager.GetPrefab("dot101")==1) + { + DotData.ins.SendEvent("a11118",""); + } + if (DataManager.GetPrefab("dot101")==2) + { + DotData.ins.SendEvent("a11119",""); + } + if (DataManager.GetPrefab("dot101")==4) + { + DotData.ins.SendEvent("a11120",""); + } + break; + } + var w = _lotteryPrizesDatas.Sum(prizesData => prizesData.AwardProbability); var dataList = new List(); for (int i = 0; i < paizeData.Boxcost; i++) { diff --git a/Blacksmith/Assets/StreamingAssets/__cp_js_files.meta b/Blacksmith/Assets/StreamingAssets/__cp_js_files.meta new file mode 100644 index 00000000..44dac42b --- /dev/null +++ b/Blacksmith/Assets/StreamingAssets/__cp_js_files.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f41a39c6310b38d49904d4d81d673638 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js b/Blacksmith/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js new file mode 100644 index 00000000..c7c7710e --- /dev/null +++ b/Blacksmith/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js @@ -0,0 +1,6 @@ +/** + * minitt-cn-sesdk-umd.prod.js + * version: 1.2.4 + * LastModified: 12/10/2024 15:32:34 GMT+0800 + */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).SESDK=t()}(this,(function(){"use strict";function e(){return(e=Object.assign||function(e){for(var t=1;t needs to be passed!",440117:"Illegal parameter format, need to pass parameter value ({#1})!",440119:"Failed to obtain device information!",440120:"Illegal parameter format, Object needs to be passed!",440122:"Illegal parameter format Requires the correct preconfigured event type ({#1}) or all!",440123:"The maximum length of data that can be stored by a single key must be less than 1MB. And the upper limit of all data stores is 10MB",440124:"setStorage error {#1}",440125:"The mini program openid has not been obtained.",440126:"Currently loaded plugin does not match the main SDK runtime environment",440127:"Plugin version must be the same as the main SDK version (plugin version {#1}, main SDK version {#2})",440601:"error: {#1}. The custom event name must be string type.",440602:'error: {#1}. The custom event name must start with a lowercase letter but cannot start with an underscore. Other characters can contain numbers, lowercase letters, and underscores "_".',440603:"error: {#1}. The custom event name must contain a maximum of 40 characters.",440604:"Call eventStart first to record the start time.",440605:"error: {#1}. The key of custom properties must be string type",440606:'error: {#1}. The key of custom properties must start with a lowercase letter but cannot start with an underscore. Other characters can contain numbers, lowercase letters, and underscores "_".',440607:"error: {#1}. The key of custom properties must contain a maximum of 40 characters.",440610:"error: {#1}. The value of each key must be string, number or boolean.",440666:"error: reportingToTencentSdk is required, please pass 1, 2 or 3.",440667:"error: Lack of required parameters to initialize Tencent Ads SDK.",440668:"error: Lack of required Tencent Ads SDK."};function s(e,t,n){var i,o,s=t;!isNaN(t)&&a[t]&&(s="[CODE: "+t+"] "+a[t],n&&(i=n,o=function(e,t){s=s.replace(new RegExp(t,"g"),e)},Object.keys(i).forEach((function(e){return o(i[e],e)})))),e||(r.$emit("assertMsg",s),console.warn("SolarEngineSDK "+s))}var u=console;function c(e,t,n){var r='SolarEngineSDK (The "'+e+'" method parameters passed by the developer):';n?u.log(r,t,",",n):u.log(r,t)}function p(e,t,r){n.getStateData("logEnabled")&&c(e,t,r)}function l(e){return!!o(e)||(s(!1,440120),!1)}function d(){if("object"==typeof crypto){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();if("function"==typeof crypto.getRandomValues&&"function"==typeof Uint8Array)return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){var t=Number(e);return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}function g(e){return null==e?void 0:e.replace(/^\s+|\s+$/g,"")}var f=function(){return n.getStateData("systemEnv")},_=function(){return 1===f()},v=function(){return 0===f()},m=function(){return 2===f()};function y(e,t){void 0===e&&(e=new Date),void 0===t&&(t="YYYYMMDD");var n={"M+":(e=new Date(e)).getMonth()+1,"D+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},r=/(Y+)/;if(r.test(t)){var i=r.exec(t)[1];t=t.replace(i,(e.getFullYear()+"").substring(4-i.length))}for(var o in n){var a=new RegExp("("+o+")");if(a.test(t)){var s=a.exec(t)[1];t=t.replace(s,1==s.length?n[o]:("00"+n[o]).substring((""+n[o]).length))}}return t}n.extend({infoLog:c,checkLogEnabled:p,deepCopy:function e(t,n){if(void 0===n&&(n=[]),null===t||"object"!=typeof t)return t;var r,i=(r=function(e){return e.original===t},n.find(r));if(i)return i.copy;var o=Array.isArray(t)?[]:{};return n.push({original:t,copy:o}),Object.keys(t).forEach((function(r){o[r]=e(t[r],n)})),o},stringLikeJsonToObject:function(e){var t,n,r={};return e?r=null==(t=e.replace(/(\s*\{)|(\}\s*)/g,""))||null==(n=t.split(","))?void 0:n.reduce((function(e,t){var n=t.split(":"),r=n[0].replace(/^\s*|\s*$/g,""),i=n[1].replace(/^\s*|\s*$/g,"").replace(/^(\"|\')|(\"|\')$/g,"");try{i=JSON.parse(i)}catch(e){i=i}return e[r]=i,e}),{}):r},isObject:o,checkObject:l,getType:i,limitParamType:function(e,t){return!!["string","number","boolean"].includes(typeof t)||(s(!1,440610,{"{#1}":e}),!1)},assert:s,generateUUID:d,trimStr:g,isWeb:v,isXcxEnv:_});var h={getCurDate:function(e){return e?y(e):y()},dateFormat:y};n.extend({seDate:h});var S=["_appInstall","_appStart","_appPur","_appImp"],k=["_web","_mp","_mp"],D=function(){return[n.getCurEnvEventName("_appInstall"),"_mpInstall"]};n.extend({STORAGE_INSTALL_SEND:"_log_install_send",STORAGE_IS_FIRST_DAY:"_first_day_time",STORAGE_EVENT_QUEUE:"_event_queue"}),n.extend({createStorageKey:function(e){return"sesdk_config_"+e}});var I=new(function(e){var t,n;function r(){var t;return(t=e.call(this)||this).settingHost=void 0,t.receiverSDKLogDomain=void 0,t.receiverSDKLogAppkey=void 0,t.receiverSDKLogTenantId=void 0,t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}((function(){this.isPrivate=!1,this.receiverDomain=void 0,this.ruleDomain=void 0,this.openidDomain=void 0,this.packageType=void 0})));I.receiverDomain="api-receiver.detailroi.com",I.ruleDomain="rule.detailroi.com",I.settingHost="rule.detailroi.com",I.openidDomain="api-receiver.detailroi.com",I.packageType=1,I.receiverSDKLogDomain="api-receiver.detailroi.com",I.receiverSDKLogAppkey="e3517aa324f39da3",I.receiverSDKLogTenantId="147e6f0c65160558";var b={get:function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),n.requestHandle({url:e,method:"get",params:t},r)},post:function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),n.requestHandle({url:e,method:"post",data:t},r)}};n.extend({HttpHelper:b});var T={isInMultilinkTest:!1,isInApp:!1,appData:{outlayerData:{},properties:{}},externalReportData:{superProperties:{},appInstall:{},appStart:{},appEnd:{}},pluginProperties:{},reportData:{_package_type:I.packageType,_tenant_id:"",_appkey:"",_source_type:"sdk",_event_name:"",_session_id:"",_type:"event",_event_id:"",_ts:0,_ua:"",_distinct_id:"",_distinct_id_type:1001,custom_properties:{},properties:{_platform:0,_os_version:"",_screen_width:0,_screen_height:0,_device_model:"",_device_type:0,_network_type:1,_lib:0,_lib_version:"1.2.4",_browser:"",_browser_version:"",_is_first_day:!1,_is_first_time:!1,_log_count:0}},isHasOpenId:!1,systemEnv:0,debugModel:!1,logEnabled:!1,isSendSDKLog:!0,quickAppAllowToSendEvents:!0};function P(e){if(l(e)){var t="boolean"==typeof e.delete&&e.delete;delete e.delete,Object.keys(e).forEach((function(n){var r=T,i=n.split(".");i.length>1?i.forEach((function(o,a){a=0:t>0;"number"===i(t)&&r&&(A[e]=t)}function O(){A.isSass&&b.post("//"+I.settingHost+"/rule/config/global/info",{_appKey:E("reportData._appkey"),_distinct_id:E("reportData._distinct_id")},{timeout:1e3*A.settingTimeout}).then((function(e){if(0===(null==e?void 0:e.code)){var t=(null==e?void 0:e.data)||{},r=t.receiverSDKLogDomain,o=t.settingPolingMinRange,a=t.settingPolingMaxRange,s=t.settingInterval,u=t.receiverDomain,c=t.ruleDomain,p=t.rulePolingMinRange,l=t.rulePolingMaxRange,d=t.ruleInterval;w.filter((function(e){return!e.condition})).forEach((function(e){return R(e.key,t[e.key],e.zero)})),r&&(A.receiverSDKLogDomain=j(r)),"number"===i(o)&&"number"===i(a)&&o0&&(A.settingPolingMinRange=o),a>0&&(A.settingPolingMaxRange=a)),"number"===i(s)&&(sA.settingPolingMaxRange&&(s=A.settingPolingMaxRange),A.settingInterval=s),u&&(A.receiverDomain=j(u)),c&&(A.ruleDomain=j(c)),"number"===i(p)&&"number"===i(l)&&p0&&(A.rulePolingMinRange=p),l>0&&(A.rulePolingMaxRange=l)),"number"===i(d)&&(dA.rulePolingMaxRange&&(d=A.rulePolingMaxRange),A.ruleInterval=d),g=w.reduce((function(e,t){return e[t.skey]=A[t.key],e}),{}),n.Storage.setItem("_setting_host",Object.assign({rcdm:A.receiverDomain,rdm:A.ruleDomain,oidm:A.openIdDomain},g))}var g;L()})).catch((function(){L()}))}function L(){clearTimeout(A.intervalTimer),A.intervalTimer=setTimeout((function(){return O()}),1e3*A.settingInterval)}function j(e){return e.replace(/^\s+|\s+$/g,"").replace(/^(http:\/\/|https:\/\/)/g,"").replace(/\/+$/g,"")}function C(e){void 0===e&&(e=!1);var t="//"+(e?A.receiverSDKLogDomain:A.receiverDomain)+"/datareceiver/receive",r=n.isKS?t+"/v3/debugObjApi":t+"/v1/debugApi",i=n.isKS?t+"/v3/objApi":t+"/v1/api";return E("debugModel")&&!e?r:i}function M(e){E("isInMultilinkTest")?r.$on("multilinkTestResponse",(function(){"function"==typeof e&&e()})):"function"==typeof e&&e()}n.extend({settingData:A}),n.extend({waitToSendEvent:M});var N,V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},q=(function(e){!function(t){function n(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,r,i,o,a){return n((a=n(n(t,e),n(i,a)))<>>32-o,r)}function i(e,t,n,i,o,a,s){return r(t&n|~t&i,e,t,o,a,s)}function o(e,t,n,i,o,a,s){return r(t&i|n&~i,e,t,o,a,s)}function a(e,t,n,i,o,a,s){return r(t^n^i,e,t,o,a,s)}function s(e,t,n,i,o,a,s){return r(n^(t|~i),e,t,o,a,s)}function u(e,t){var r,u,c,p;e[t>>5]|=128<>>9<<4)]=t;for(var l=1732584193,d=-271733879,g=-1732584194,f=271733878,_=0;_>5]>>>r%32&255);return t}function p(e){var t=[];for(t[(e.length>>2)-1]=void 0,r=0;r>5]|=(255&e.charCodeAt(r/8))<>>4&15)+n.charAt(15&t);return r}function d(e){return unescape(encodeURIComponent(e))}function g(e){return c(u(p(e=d(e)),8*e.length))}function f(e,t){return function(e,t){var n,r=p(e),i=[],o=[];for(i[15]=o[15]=void 0,16=n}function ee(e,t){if(Z(e,1024e3)){var n,r,i=e.pop();D().includes(i.eventName)&&1===(null==(n=i.params)||null==(r=n[0])?void 0:r._event_type)?e.splice(1,0,i):t.push(i),ee(e,t)}return e}function te(e){var t,r,i,o=(r=null==(t=n.Storage.getItem("_log_count"))?void 0:t.split("_")[0],i=h.getCurDate(),null===t||+r!=+i?0:Number(t.split("_")[1])+1);return e[0].properties._log_count=o,o}function ne(e,t,r){if(t||!D().includes(e)||1!==r||n.Storage.getItem("_event_queue",!0,[]).filter((function(e){var t,n;return D().includes(e.eventName)&&1===(null==(t=e.params)||null==(n=t[0])?void 0:n._event_type)})).length){var i="_event_"+e;n.Storage.setItem(i,e)}}function re(e,t,r){var i,o;void 0===e&&(e=""),void 0===r&&(r=!0),r&&(o=te(t));var a={eventName:e,params:t,status:"toSubmit"},s=n.Storage.getItem("_event_queue",!0,[]);s.unshift(a);var u=[];ee(s,u),u.length&&n.trackLogEvent({state:2,message:"Events deleted when local storage is low",event_name:u.map((function(e){return e.eventName})).join(","),log_count:u.map((function(e){var t,n,r;return null==(t=e.params)||null==(n=t[0])||null==(r=n.properties)?void 0:r._log_count})).join(",")});var c=!1;n.Storage.setItem("_event_queue",s,(function(){c=!0}));var p,l=null==(i=t[0])?void 0:i._event_type;return D().includes(e)&&1===l&&(n.Storage.setItem("_log_install_insert",1),n.trackLogEvent({state:c?201:101,is_success:!c,message:e+" store local",event_name:e,log_count:null==(p=t[0])?void 0:p.properties._log_count})),e&&ne(e,!1,l),r&&X(o),c}function ie(e){var t=Number(f()),n=k[t];return E("isInApp")?e:e.replace(/^_app/,n)}function oe(t){if(void 0===t&&(t={}),A.isSass&&E("isSendSDKLog")&&(!E("debugModel")||[202,6,101,201].includes(t.state))){n.isXcxEnv()&&(t.env_version=null==n.getEnvVersion?void 0:n.getEnvVersion());var r=E("reportData"),i=[e({},r,{_ts:Date.now(),_event_id:d(),_appkey:I.receiverSDKLogAppkey,_tenant_id:I.receiverSDKLogTenantId,_type:"event",_event_name:"sesdk_recordLog",_event_type:-1,properties:e({},r.properties),custom_properties:e({user_appkey:r._appkey,user_tenantId:r._tenant_id,user_debugModel:E("debugModel"),user_domain:A.receiverDomain,isInApp:E("isInApp"),installInsert:"1"===n.Storage.getItem("_log_install_insert"),installSend:"1"===n.Storage.getItem("_log_install_send")},t)})];i[0].properties._si=$(i[0]);var o=n.Storage.getItem("_log_event_queue",!0,[]);o.length&&(i=i.concat(o),n.Storage.deleteItem("_log_event_queue")),ae(i)}}function ae(e,t){void 0===t&&(t=A.receivertRetryTimes);var r=n.isKS?{list:e}:e;b.post(C(!0),r,{timeout:1e3*A.receiverTimeout}).then((function(n){void 0===n.status&&se(e,t)})).catch((function(n){se(e,t)}))}function se(e,t){t>0?ae(e,--t):(e.length>99&&(e=e.slice(0,99)),n.Storage.setItem("_log_event_queue",e,null,!0))}function ue(e,t){void 0===t&&(t=!1);var r=n.Storage.getItem("_log_count_send",!0,{}),i=h.getCurDate(),o=Object.keys(r).filter((function(e){return e!==i}));o.length&&o.forEach((function(e){oe({message:"non-same-day _log_count",log_date:e,log_count_list:r[e]}),delete r[e]})),Array.isArray(e)&&(e=e.sort((function(e,t){return e-t})),r[i]||(r[i]=[]),e.length&&r[i].push(e.length>1?e.join(","):e[0]),r[i].length&&((r[i].reduce((function(e,t){return e+String(t).split(",").length}),0)>=100||t)&&(oe({message:"same-day _log_count",log_date:i,log_count_list:r[i]}),t||delete r[i]),n.Storage.setItem("_log_count_send",r)))}function ce(){ue(),pe([6e4,3e5,18e5],0)}function pe(e,t){t>2||setTimeout((function(){ue([],!0),pe(e,t+1)}),e[t])}function le(t,r,i,o){void 0===i&&(i={}),void 0===o&&(o={}),n.NATIVE.ready((function(){try{var a=ie(t);!function(e,t,r){if(E("debugModel"))return P({"reportData.properties._is_first_day":!0,"reportData.properties._is_first_time":!0});var i=h.getCurDate(),o=n.Storage.getItem("_first_day_time"),a=i===h.getCurDate(+o);if(S.includes(t)&&4!==r&&o>0){var s=o-o%36e5,u=+new Date;a=u>=s-864e5&&u<=s+9e7}P({"reportData.properties._is_first_day":a});var c="_event_"+e;P({"reportData.properties._is_first_time":null===n.Storage.getItem(c)})}(a,t,o._event_type);var s=E("reportData"),u=E("externalReportData"),c=u[t.replace(/_/,"")]||{},p=i.isSendByBeacon;delete i.isSendByBeacon;var l=[e({},s,o,{_ts:Date.now(),_event_id:d(),_type:"event",_event_name:a,_event_type:o._event_type||3,properties:e({},s.properties,r),custom_properties:e({},s.custom_properties,u.superProperties,i,c)})],g=v()&&p;if(g&&(X(te(l)),n.sendBeacon({url:C(),data:ge(l)})),v()&&E("debugModel"))return ne(a,!0),me(ge(l,!1));var _=[1,2].includes(f())&&E("debugModel");if(re(a,l,-1!==o._event_type&&!_&&!g)||E("isInMultilinkTest"))return l[0].properties._si=$(l[0]),fe(C(),ge(l));de()}catch(e){oe({state:999,message:"report errors",error_message:JSON.stringify(e)})}}))}function de(){var e=n.Storage.getItem("_event_queue",!0,[]);if(0!==e.length&&(!m()||E("quickAppAllowToSendEvents"))&&0!=(t=e,_()&&!E("isHasOpenId")?(s(!1,440125),!1):!(void 0!==t.find((function(e){return"submitting"===e.status}))))){var t,r=e.splice(0,100),i=[],o=r.map((function(e){e.status="submitting",i.push(e.params[0]._event_id);var t=e.params[0];return(n.isXcxEnv()||m())&&n.setXcxEventData(t),t._visitor_id=E("reportData._visitor_id"),"userset"!==t._type&&(t.properties._group_id_list=E("reportData.properties._group_id_list"),t.properties._experiment_group_id_list=E("reportData.properties._experiment_group_id_list"),t.properties._combination_id=E("reportData.properties._combination_id")),t.properties._si=$(t),t}));e.unshift.apply(e,r),n.Storage.setItem("_event_queue",e),fe(C(),ge(o))}}function ge(e,t){void 0===t&&(t=!0);var n=E("isInApp"),r=E("appData.outlayerData"),i=E("appData.properties");return n&&e.length?e.map((function(e){if("userset"!==e._type)return e.properties._primitive_attribute=JSON.stringify(e),(e=Object.assign(e,r)).properties=Object.assign(e.properties,i),t&&(e.properties._si=$(e)),e})):e}function fe(e,t,i){void 0===i&&(i=A.receivertRetryTimes),i===A.receivertRetryTimes&&p("report data list",t);var o=n.isKS?{list:t}:t;b.post(e,o,{timeout:1e3*A.receiverTimeout}).then((function(o){if(void 0!==o.status){var a=t.findIndex((function(e){return D().includes(e._event_name)}));if(a>-1){var s=t[a]._event_name,u=t[a].properties._log_count;n.Storage.setItem("_log_install_send",1),n.trackLogEvent({state:202,is_success:!1,message:s+" report success",event_name:s,log_count:u}),r.$emit("install_event_send")}ue(t.map((function(e){return e.properties._log_count})));var c=n.Storage.getItem("_event_queue",!0,[]),p=t.map((function(e){return e._event_id})),l=c.filter((function(e){return"toSubmit"===e.status})).filter((function(e){return!p.includes(e.params[0]._event_id)}));if(n.Storage.setItem("_event_queue",l),E("isInMultilinkTest"))return;de()}else _e(e,t,i,o.msg,o.status)})).catch((function(n){_e(e,t,i,(null==n?void 0:n.message)||n,(null==n?void 0:n.errorCode)||"timeout")}))}function _e(e,t,r,i,o){if(r>0)fe(e,t,--r);else{var a=n.Storage.getItem("_event_queue",!0,[]);a.forEach((function(e){e.status="toSubmit"})),n.Storage.setItem("_event_queue",a),oe({state:3,code:o,message:"failed to report",error_message:i,event_name:null==t?void 0:t.map((function(e){return e._event_name})).join(","),log_count:null==t?void 0:t.map((function(e){var t;return null==(t=e.properties)?void 0:t._log_count})).join(",")})}}function ve(e,t,n,r){void 0===r&&(r=!0),D().includes(e)&&oe({state:6,code:n,message:"debug _webInstall report",is_success:r,error_message:t,event_name:e})}function me(e,t){var n;void 0===t&&(t=A.receivertRetryTimes);var r=null==(n=e[0])?void 0:n._event_name;b.post(C(),e,{timeout:1e3*A.receiverTimeout}).then((function(e){ve(r,e.msg,e.status)})).catch((function(n){t>0?(t--,me(e,t)):ve(r,(null==n?void 0:n.message)||n,(null==n?void 0:n.errorCode)||"timeout",!1)}))}n.extend({valueToStr:Q,getCurEnvEventName:ie,isValueExceedLimit:Z,filterCustomProperties:function(e){var t=Object.create(null);if(!l(e))return t;var n="",r="",o="",a="";return function(e){if("object"!==i(e))return[];var t=Object.keys(e);if("function"!==i(Reflect.ownKeys))return t;var n=Object.getOwnPropertyNames(e),r=Reflect.ownKeys(e),o=n.filter((function(e){return!t.includes(e)}));return r.filter((function(e){return!o.includes(e)}))}(e).forEach((function(s){"string"!==i(s)&&(n+=String(s)+", "),"string"!==i(s)||/^[a-z][a-z0-9_]*$/.test(s)||(r+=String(s)+", "),"string"===i(s)&&s.length>40&&(o+=String(s)+", "),["number","string","boolean","array"].includes(i(e[s]))||(a+=String(s)+", "),t[s]=e[s]})),n.length&&s(!1,440605,{"{#1}":n.slice(0,n.length-2)}),r.length&&s(!1,440606,{"{#1}":r.slice(0,r.length-2)}),o.length&&s(!1,440607,{"{#1}":o.slice(0,o.length-2)}),a.length&&s(!1,440610,{"{#1}":a.slice(0,o.length-2)}),t},getPredefineEventFormattedData:Y}),n.extend({trackLogEvent:oe});var ye=void 0;function he(e){void 0===e&&(e=A.eventPollingMaxCount),clearTimeout(ye),ye=setTimeout((function(){--e>0&&(de(),he(e))}),1e3*A.eventPollingInterval)}n.extend({trackEvent:le,postEvent:de});var Se=!1,ke=!1;function De(e,t,n){if(null==e?void 0:e.enable){if("function"!=typeof(null==t?void 0:t.init)&&n)return s(!1,n);t.init(e)}}var Ie={prevInit:function(e){void 0!==e&&""!==e&&(ke=!0,n.Storage.setItem("_is_prev_init",1))},init:function(e){var t,o,a,u;if(!ke&&!n.Storage.getItem("_is_prev_init"))return s(!1,440100);if(l(e)){if((null==(t=e.config)?void 0:t.logEnabled)&&c("init",e),!e.appKey||!e.userId)return s(!1,440101);var p=(null==(o=e.config)?void 0:o.autoTrackConfig)||{},d=p.autoTrack,g=p.autoTrackPageClick;_()&&d&&g&&r.$emit("xcx_proxy_click");var f={};f._appkey=e.appKey,f._tenant_id=e.userId,P({"reportData._appkey":f._appkey}),x(),_()&&(null==n.somePrevInit||n.somePrevInit(e),n.getOpenId(e));var y=!!v()&&(null==(a=e.config)?void 0:a.isInApp),h=e.config||{},S=h.debugModel,k=h.logEnabled,D=h.disableRecordLog,I=h.remoteConfig,b=h.multilinkTestConfig,T=h.getQuickQueryWaitTime,E="number"===i(T)&&T>0;P({isInMultilinkTest:(null==b?void 0:b.enable)&&(null==(u=n.multilinkTest)?void 0:u.runtime),isInApp:!!y,debugModel:!!S,logEnabled:!!k,isSendSDKLog:!D,quickAppAllowToSendEvents:!E}),m()?(n.allowToSendEvents(E,T),n.sdkInitData().then((function(e){return A(e)}))):"promise"===i(n.sdkInitData)?n.sdkInitData.then((function(e){return A(e)})):Promise.resolve(n.sdkInitData).then((function(e){return A(e)}))}function A(e){var t=Object.assign(e,f);n.init({reportData:t}),y&&"function"==typeof n.initNativeApp&&n.initNativeApp(),_()?r.$on("ready_to_create_distinct",(function(){De(I,n.abtest,440107),w(),O()})):(De(I,n.abtest,440107),w(),O()),ce(),v()&&De(b,n.multilinkTest),he()}function w(){Se=e,r.$emit("isReady",e)}},ready:function(e){if("function"==typeof e)return Se?e.call(this,Se):void r.$on("isReady",(function(t){return e(t)}))},use:function(e){if("function"!=typeof(null==e?void 0:e.init))return s(!1,440109);if(e.env!==f())return s(!1,440126);var t=E("reportData.properties._lib_version");if(e.version!==t)return s(!1,440127,{"{#1}":e.version,"{#2}":t});e.init(n)}},be={login:function(e){p("login",e),P({"reportData._account_id":e}),n.Storage.setItem("_account_id",e)},getAccountId:function(){var e=E("reportData");return null==e?void 0:e._account_id},logout:function(){P({"reportData._account_id":""}),n.Storage.deleteItem("_account_id")}},Te={setVisitorId:function(e){p("setVisitorId",e),P({"reportData._visitor_id":e}),n.Storage.setItem("_visitor_id",e)},getVisitorId:function(){var e=E("reportData");return null==e?void 0:e._visitor_id}};function Pe(e,t,r){if(void 0===r&&(r=!1),!e||!g(e))return s(!1,440106);var i,o=E("externalReportData.superProperties");P("all"===e?{"externalReportData.superProperties":Object.assign(o,t)}:((i={delete:r})["externalReportData.superProperties."+e]=t,i));var a=n.Storage.getItem("superProperties",!0);"all"===e?n.Storage.setItem("superProperties",Object.assign(a,t)):(delete a[e],n.Storage.setItem("superProperties",a))}var Ee={setSuperProperties:function(e){p("setSuperProperties",e),l(e)&&Pe("all",e)},unsetSuperProperty:function(e){p("unsetSuperProperty",e),Pe(e,"",!0)},clearSuperProperties:function(){P({"externalReportData.superProperties":{}}),n.Storage.deleteItem("superProperties")}},Ae=["appInstall","appStart","appEnd","all"];function xe(e,t){var n=E("externalReportData");if(e===Ae[Ae.length-1])Ae.slice(0,Ae.length-1).forEach((function(e){var r,i=null===t?{}:Object.assign(n[e],t);P(((r={})["externalReportData."+e]=i,r))}));else{var r,i=null===t?{}:Object.assign(n[e],t);P(((r={})["externalReportData."+e]=i,r))}}var we={setPresetEvent:function(e,t){var n,r;p("setPresetEvent",e,t);var i=Number(f()),o=k[i].replace("_","");if(e=null==(n=e)||null==(r=n.replace(/(mp|web)Install/,Ae[0]))?void 0:r.replace(/(mp|web)Start/,Ae[1]),v()&&Ae.includes("appEnd")&&Ae.splice(2,1),!Ae.includes(e))return s(!1,440122,{"{#1}":Ae.map((function(e){return e.replace("app",o)})).slice(0,Ae.length-1).join(",")});t?l(t)&&xe(e,t):xe(e,null)}};function Re(e,t){void 0===t&&(t=!0),t&&p("eventStart",e),G[e+(t?4:1)]=Date.now()}function Oe(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),n&&p("eventFinish",e,t),l(t)){var r=n?4:1,i=e+r;if(void 0===G[i])return s(!1,440604);var o=G[i];le(e,{_duration:Date.now()-o},t,{_event_type:r})}}var Le={eventStart:Re,eventFinish:Oe};function je(){Oe("_appEnd",E("externalReportData").appEnd,!1)}function Ce(t,r){void 0===r&&(r={}),p(t,r),n.NATIVE.ready((function(){var n=[e({},E("reportData"),{_ts:Date.now(),_type:"userset",_userset_type:t,properties:{},custom_properties:r||{}})];if(v()&&E("debugModel"))return me(n);re("",n),de()}))}n.extend({trackAppInstall:function(){var e="_event_"+ie("_appInstall");n.Storage.getItem(e)||le("_appInstall",{},E("externalReportData").appInstall,{_event_type:1})},trackAppStart:function(e){void 0===e&&(e={}),Re("_appEnd",!1),le("_appStart",e,E("externalReportData").appStart,{_event_type:1})},trackAppEnd:je});var Me=["userDeleteByAccountId","userDeleteByVisitorId"],Ne=e({},Ie,be,Te,Ee,we,{trackAppEnd:je},Le,{track:function(e,t){void 0===t&&(t={}),p("track",e,t),l(t)&&M((function(){le(e,{},t,{_event_type:4})}))}},{trackAdImpression:function(e){p("trackAdImpression",e);var t=Y(["adNetworkPlatform","adType","adNetworkAppID","adId","mediationPlatform","ecpm","currency","rendered"],e);le("_appImp",t.properties,t.customProperties)},trackAdClick:function(e){p("trackAdClick",e);var t=Y(["adNetworkPlatform","mediationPlatform","adType","adId"],e);le("_appClick",t.properties,t.customProperties)},trackIAP:function(e){p("trackIAP",e);var t=Y(["orderId","payAmount","currencyType","payType","productID","productName","productCount","payStatus","failReason"],e),r=t.properties,i=t.customProperties;"function"==typeof n.checkTencentEvents?n.checkTencentEvents(e,r,"_mpPur").then((function(e){le("_appPur",r,i)})):le("_appPur",r,i)},trackAppAttr:function(e){p("trackAppAttr",e);var t=Y(["adNetwork","subChannel","adAccountID","adAccountName","adCampaignID","adCampaignName","adOfferID","adOfferName","adCreativeID","adCreativeName","attributionPlatform"],e);le("_appAttr",t.properties,t.customProperties)},trackOrder:function(e){p("trackOrder",e);var t=Y(["orderId","payAmount","currencyType","payType","status"],e);le("_appOrder",t.properties,t.customProperties)},trackRegister:function(e){p("trackRegister",e);var t=Y(["regType","registerStatus"],e),r=t.properties,i=t.customProperties;"function"==typeof n.checkTencentEvents?n.checkTencentEvents(e,r,"_mpReg").then((function(e){le("_appReg",r,i)})):le("_appReg",r,i)},trackLogin:function(e){p("trackLogin",e);var t=Y(["loginType","loginStatus"],e);le("_appLogin",t.properties,t.customProperties)}},{userInit:function(e){Ce("userInit",e)},userUpdate:function(e){Ce("userUpdate",e)},userAdd:function(e){Ce("userAdd",e)},userUnset:function(e){var t={};Array.isArray(e)&&e.forEach((function(e){t[e]=""})),Ce("userUnset",t)},userAppend:function(e){Ce("userAppend",e)},userDelete:function(e){if(!Me.includes(e))return s(!1,440117,{"{#1}":Me.join(" or ")});Ce(e)}},{setChannel:function(e){p("setChannel",e),P({"reportData.properties._channel":e})},setReferrerTitle:function(e){p("setReferrerTitle",e),P({"reportData.properties._referrer_title":e})},listenErrorMessage:function(e){r.$on("assertMsg",e)}}),Ve=e({version:"1.2.4"},Ne);n.extend({NATIVE:Ve});var qe={identifier:"undefined"!=typeof tt&&tt,mpType:"douyin"},Ke=qe.mpType,Ue=1e3,He="undefined"==typeof App,$e="douyin"===Ke,ze="kwai"===Ke,Be=qe.identifier||{},Fe={mpType:Ke};function Je(e){if("object"!==n.getType(e)||!Object.keys(e).length)return e;var t={};return Object.keys(e).forEach((function(n){t[n]=""+e[n]})),t}function We(e){return He&&ze?(e.from||Ue)+"":(e.scene||Ue)+""}function Ye(){var e={};return He&&$e?Be.getLaunchOptionsSync&&(e=Be.getLaunchOptionsSync()||{}):Be.getEnterOptionsSync&&(e=Be.getEnterOptionsSync()||{}),{scene:We(e),path:e.path||"",queryInfo:Je(e.query||{}),referrerInfo:e.referrerInfo||e.refererInfo||{}}}function Ge(e){var t={},r={"reportData.properties._launch_scene":(t=e||Ye()).scene,"reportData.properties._path":t.path,"reportData.properties._referrer_info":t.referrerInfo};Object.keys(t.queryInfo||{}).length&&(r["reportData.properties._query_info"]=t.queryInfo),n.setStateData(r)}var Xe=["_openid","_unionid","_launch_scene","_path","_query_info","_referrer_info"];var Qe=n.createStorageKey,Ze={setItem:function(e,t,r,i){void 0===i&&(i=!1),t=n.valueToStr(t);try{var o=null==Be.getStorageInfoSync?void 0:Be.getStorageInfoSync(),a=1024*(o.limitSize-o.currentSize-24);if(n.isValueExceedLimit(t)||n.valueToStr(t).length>a)return"function"===n.getType(r)&&r(),!i&&et(e),n.assert(!1,440123)}catch(t){return!i&&et(e),n.assert(!1,440124,{"{#1}":t})}null==Be.setStorageSync||Be.setStorageSync(Qe(e),t)},getItem:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n={});var r=null==Be.getStorageSync?void 0:Be.getStorageSync(Qe(e));""===r&&(r=null);var i=r;if(t)try{i=JSON.parse(r)||n}catch(e){i=n}return i},deleteItem:function(e){null==Be.removeStorageSync||Be.removeStorageSync(Qe(e))},clear:function(){null==Be.clearStorage||Be.clearStorage()}};function et(e){n.trackLogEvent({state:4,message:"lack local storage",stroage_key:e})}function nt(){return(nt=Object.assign||function(e){for(var t=1;t0?(r--,setTimeout((function(){rt(e,t,r)}),1e3*n.settingData.attDataInterval)):("function"==typeof t&&t({result:i||null}),n.trackLogEvent({state:13,message:"att_fail",isListen:e,retry:n.settingData.attRetryLimit-r,error_message:i}))}function ot(e){return new Promise((function(t){var r=n.Storage.getItem("attr_res",!0,null);return 0===(null==r?void 0:r.s)?t(r.r):"1"===n.Storage.getItem(n.STORAGE_INSTALL_SEND)?rt(e,(function(e){t(e)})):void n.customEvents.$on("install_event_send",(function(){setTimeout((function(){rt(e,(function(e){t(e)}))}),1e3*n.settingData.attDataInterval)}))}))}function at(){var e=n.getDistinctId();n.setStateData({"reportData._distinct_id":e.id,"reportData._distinct_id_type":e.type}),n.customEvents.$emit("ready_to_create_distinct")}n.extend({Storage:Ze}),n.extend({requestHandle:function(e,t){return new Promise((function(r,i){var o={url:"https:"+e.url,method:e.method.toUpperCase(),data:"get"===e.method?e.params:e.data,timeout:t.timeout||6e4,success:function(e){var t=(null==e?void 0:e.data)||{};r(t)},fail:function(e,t){i(e),n.assert&&n.assert(!1,440108,{"{#1}":"code = "+t+" data = "+e})}};(null==t?void 0:t.headers)&&(o.header=t.headers),null==Be.request||Be.request(o)}))}});var st={config:{},customConfig:[]};function ut(){var e,t,n,r,i,o=(i=getCurrentPages(),null==(r=i[i.length-1])?void 0:r.route),a="";return(null==(e=st.customConfig)||null==(t=e.filter((function(e){var t;return a=null==(t=Object.keys(e))?void 0:t[0],null==o?void 0:o.includes(a)})))||null==(n=t[0])?void 0:n[a])||{}}var ct={trackPageView:function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t={}),n.checkObject(t)){var r=ut();(e||!st.config.autoTrackPageView||r.ignoreTrack)&&n.trackEvent("_mpViewScreen",{},t,{_event_type:e?2:3})}},setTrackPageView:function(e){if(n.checkLogEnabled("setTrackPageView",e),!Array.isArray(e)||e.filter((function(e){return!n.isObject(e)})).length)return n.assert(!1,440116);st.customConfig=e},setAutoTrack:function(e){n.checkLogEnabled("setAutoTrack",e),n.checkObject(e)&&("boolean"==typeof e.autoTrack&&(st.config.autoTrackPageView=e.autoTrack,st.config.autoTrackPageClick=e.autoTrack),"boolean"==typeof e.autoTrackPageView&&("boolean"==typeof e.autoTrack?st.config.autoTrackPageView=e.autoTrack&&e.autoTrackPageView:st.config.autoTrackPageView=e.autoTrackPageView),"boolean"==typeof e.autoTrackPageClick&&("boolean"==typeof e.autoTrack?st.config.autoTrackPageClick=e.autoTrack&&e.autoTrackPageClick:st.config.autoTrackPageClick=e.autoTrackPageClick))},trackPageClick:function(e,t){void 0===t&&(t=!1);var r=null==e?void 0:e.currentTarget;if(!r)return n.assert(!1,440102);var i=r.dataset||{},o=ut();if(t||!st.config.allowTrackPageClick||o.ignoreTrack||"true"===i.ignoreTrack){var a=n.stringLikeJsonToObject(null==i?void 0:i.customProperty),s={};s._element_id=i.elementId||r.id,s._element_content=i.content,s._element_name=i.name,s._element_class_name=i.className,s._element_type=i.type,s._element_target_url=i.targetUrl,n.trackEvent("_mpElementClick",s,a,{_event_type:t?2:3})}}},pt=nt({},{setXcxPageTitle:function(e){if(n.checkLogEnabled("setXcxPageTitle",e),!e||"string"!=typeof e||!n.trimStr(e))return n.assert(!1,440105);n.setStateData({"reportData.properties._page_title":e})},getDistinct:function(){return new Promise((function(e){var t=!1,r=n.Storage.getItem("_distinct",!0,null);(null==r?void 0:r.id)?(t=!0,e({result:{distinct_id:r.id,distinct_id_type:r.type}})):n.customEvents.$on("ready_to_create_distinct",(function(){t=!0;var r=n.getDistinctId();e({result:{distinct_id:r.id,distinct_id_type:r.type}})})),setTimeout((function(){t||e({msg:"failed to get distinct",result:null})}),1e3*n.settingData.distinctWaitTime)}))},setOnAttributionListener:function(){return ot(!0)},getAttribution:function(){return ot(!1)},setPluginProperties:function(e){if("[object Object]"===Object.prototype.toString.call(e)){var t=n.getStateData("pluginProperties");n.setStateData({pluginProperties:Object.assign({},t,e)})}}});function lt(e,t){void 0===t&&(t=[]);for(var n=function(e,t){var n=[];for(var r in e)"function"!=typeof e[r]||dt[r]||t.includes(r)||n.push(r);return n}(e,t),r=0;r1&&n.setStateData({"reportData.properties._referrer_name":(null==(t=r[r.length-2])?void 0:t.route)||""}),n.NATIVE.ready((function(e){!function(){var e=st.config.autoTrackPageView,t=ut();if(e&&!t.ignoreTrack){var r=n.filterCustomProperties(t.customProperty||{});ct.trackPageView(!0,r)}}()}))},onReady:function(){},onHide:function(){},onUnload:function(){}};function mt(e,t,n){if(e[t]){var r=e[t];e[t]=function(e){n.call(this,e,t),r.call(this,e)}}else e[t]=function(e){n.call(this,e,t)}}function yt(){var e,t,r;e=App,App=function(t){t.SESDK=n.NATIVE,mt(t,"onShow",_t.onShow),mt(t,"onHide",_t.onHide),mt(t,"onLaunch",_t.onLaunch),e(t)},t=Page,Page=function(e){e||(e={});try{n.customEvents.$on("xcx_proxy_click",(function(){lt(e)}))}catch(e){console.error("proxy event failed")}mt(e,"onLoad",vt.onLoad),mt(e,"onShow",vt.onShow),mt(e,"onReady",vt.onReady),mt(e,"onHide",vt.onHide),mt(e,"onUnload",vt.onUnload),t(e)},r=Component,Component=function(e){e||(e={}),e.methods||(e.methods={}),n.customEvents.$on("xcx_proxy_click",(function(){lt(e.methods)})),mt(e.methods,"onLoad",(function(e){var t;null==(t=getCurrentPages())||t[0],vt.onLoad(e)})),mt(e.methods,"onShow",vt.onShow),r(e)}}function ht(){var e,t,r={_device_type:0,_platform:0,_app_platform:He?"minigame":"miniprogram"},i=null;try{i=Be.getSystemInfoSync()}catch(e){n.assert(!1,440119)}if(i){var o;r._manufacturer=i.brand,r._device_model=i.model,r._device_type=(e=i.platform,(t={other:0,"android phone":1,"android pad":2,ios:3,ipad:4,mac:5,windows:6,devtools:7})[Object.keys(t).find((function(t){return t.indexOf(e)>-1}))||"other"]),r._platform=function(e){var t={other:0,android:1,ios:2,windows:3,mac:4,devtools:8};return t[Object.keys(t).find((function(t){return t.indexOf(e)>-1}))||"other"]}(i.platform);var a=(null==(o=i.system)?void 0:o.split(" "))||[];r._os_version=a.length>1?a[1]:i.system,r._screen_height=i.screenHeight,r._screen_width=i.screenWidth,r._language=i.language,r._app_version=i.version,r._mp_version=i.SDKVersion,r._browser_version=i.version,r._app_name=i.appName}return r}function St(){var e={_launch_scene:Ue,_network_type:1},t=Ye();return e._launch_scene=t.scene,e._path=t.path,e._query_info=t.queryInfo,e._referrer_info=t.referrerInfo,new Promise((function(t){var n;(n={none:0,unknown:1,"2g":2,"3g":3,"4g":4,"5g":5,wifi:9},new Promise((function(e){Be.getNetworkType?Be.getNetworkType({success:function(t){e(n[null==t?void 0:t.networkType]||1)},fail:function(){e(1)}}):e(1)}))).then((function(n){e._network_type=n,t(e)}))}))}function kt(e,t,r,i){void 0===i&&(i=n.settingData.openIdRetryTimes),null==Be.login||Be.login({success:function(o){var a=o||{},s=a.code,u=void 0===s?"":s,c=a.anonymousCode,p=void 0===c?"":c,l={appCode:e,code:u,mpType:t};p&&(l.anonymousCode=p),n.HttpHelper.get("//"+n.settingData.openIdDomain+"/receiver/api/public/openid",l,{timeout:1e3*n.settingData.openIdTimeout}).then((function(n){var o=(null==n?void 0:n.data)||{};o.openid||o.anonymous_openid?"function"==typeof r&&r(o):Dt(e,t,r,i)})).catch((function(){Dt(e,t,r,i)}))},fail:function(){Dt(e,t,r,i)}})}function Dt(e,t,r,i){var o;i>0?kt(e,t,r,--i):((o=n.Storage.getItem("_uuid"))||(o=n.generateUUID(),n.Storage.setItem("_uuid",o),n.setStateData({"reportData._uuid":o})),"function"==typeof r&&r())}var It,bt,Tt=null;function Pt(){var e;if(Tt||(Tt=n.Storage.getItem("_distinct",!0,null)),null==(e=Tt)?void 0:e.id)return Tt;var t=n.getStateData("reportData.properties._openid"),r=n.getStateData("reportData.properties._anonymous_openid"),i=n.getStateData("reportData._uuid"),o={id:t||r||i,type:t?1101:r?1102:1103};return n.Storage.setItem("_distinct",o),o}return n.setStateData({systemEnv:1}),He?(n.trackAppInstall(),null==Be.onShow||Be.onShow((function(e){Ge({scene:We(e),path:e.path||"",queryInfo:Je(e.query||{}),referrerInfo:e.refererInfo||{}}),n.trackAppStart()})),void 0!==(null==globalThis?void 0:globalThis.CocosEngine)&&(Ge(),n.trackAppStart()),null==Be.onHide||Be.onHide((function(){n.trackAppEnd()}))):yt(),n.extend({sdkInitData:(It={_uuid:n.Storage.getItem("_uuid")||""},bt=function(){var e,t=n.Storage.getItem("_system_info",!0);return(null==(e=t)?void 0:e._app_version)||(t=ht(),n.Storage.setItem("_system_info",t)),t}(),bt._mp_type=Fe.mpType,new Promise((function(e){St().then((function(t){var n=Object.assign(bt,t);It.properties=n,It.properties._lib=He?5:4,e(It)}))}))),getOpenId:function(e){var t=e.openid,r=e.anonymous_openid,i=e.unionid,o=void 0===i?"":i,a=t||r;if(n.setStateData({"reportData.properties._openid_type":a?"0":"1","reportData.properties._unionid":o}),a)n.setStateData({isHasOpenId:!0,"reportData.properties._openid":t||"","reportData.properties._anonymous_openid":r||""}),at();else{var s=n.Storage.getItem("_login_info",!0,{})||{},u=s.openid,c=s.unionid,p=s.anonymous_openid;if(u||p)return n.setStateData({isHasOpenId:!0,"reportData.properties._openid":u,"reportData.properties._unionid":o||c,"reportData.properties._anonymous_openid":p}),at();kt(e.appKey,Fe.mpType,(function(e){var t=e||{},r=t.openid,i=void 0===r?"":r,a=t.unionid,s=void 0===a?"":a,u=t.anonymous_openid,c=void 0===u?"":u;(i||c)&&n.Storage.setItem("_login_info",{openid:i,unionid:s,anonymous_openid:c}),n.setStateData({isHasOpenId:!0,"reportData.properties._openid":i,"reportData.properties._unionid":o||s,"reportData.properties._anonymous_openid":c}),at(),n.postEvent()}))}},getDistinctId:Pt,getEnvVersion:function(){var e,t;return Be.getEnvInfoSync&&(null==(e=Be.getEnvInfoSync())||null==(t=e.microapp)?void 0:t.envType)||""},setXcxEventData:function(e){!function(e,t){if(e._distinct_id=t.id,e._distinct_id_type=t.type,e._uuid=n.getStateData("reportData._uuid"),"userset"!==e._type&&Xe.forEach((function(t){e.properties[t]=n.getStateData("reportData.properties."+t)})),He){var r=n.getStateData("pluginProperties");Object.keys(r).forEach((function(t){e.properties[t]=r[t]}))}}(e,Pt()),"userset"!==e._type&&(e.properties._anonymous_openid=n.getStateData("reportData.properties._anonymous_openid"))}}),n.NATIVE})); diff --git a/Blacksmith/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js.meta b/Blacksmith/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js.meta new file mode 100644 index 00000000..e59259a4 --- /dev/null +++ b/Blacksmith/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: c345c06d7f34ae44d8dd2b8a3e298425 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Blacksmith/ProjectSettings/ProjectSettings.asset b/Blacksmith/ProjectSettings/ProjectSettings.asset index 456af0c3..a96c90ef 100644 --- a/Blacksmith/ProjectSettings/ProjectSettings.asset +++ b/Blacksmith/ProjectSettings/ProjectSettings.asset @@ -790,7 +790,8 @@ PlayerSettings: webGLMemoryGeometricGrowthStep: 0.2 webGLMemoryGeometricGrowthCap: 96 webGLPowerPreference: 2 - scriptingDefineSymbols: {} + scriptingDefineSymbols: + WebGL: SE_DG additionalCompilerArguments: {} platformArchitecture: {} scriptingBackend: {} diff --git a/Blacksmith/UserSettings/Layouts/default-2022.dwlt b/Blacksmith/UserSettings/Layouts/default-2022.dwlt index 33369912..a8dee386 100644 --- a/Blacksmith/UserSettings/Layouts/default-2022.dwlt +++ b/Blacksmith/UserSettings/Layouts/default-2022.dwlt @@ -38,16 +38,16 @@ MonoBehaviour: m_EditorClassIdentifier: m_PixelRect: serializedVersion: 2 - x: 1913 - y: 36 + x: 1920 + y: 0 width: 1920 - height: 996 + height: 1032 m_ShowMode: 0 m_Title: Game m_RootView: {fileID: 7} m_MinSize: {x: 100, y: 121} m_MaxSize: {x: 4000, y: 4021} - m_Maximized: 0 + m_Maximized: 1 --- !u!114 &3 MonoBehaviour: m_ObjectHideFlags: 52 @@ -67,7 +67,7 @@ MonoBehaviour: width: 1920 height: 989 m_ShowMode: 4 - m_Title: Inspector + m_Title: Hierarchy m_RootView: {fileID: 12} m_MinSize: {x: 875, y: 300} m_MaxSize: {x: 10000, y: 10000} @@ -122,7 +122,7 @@ MonoBehaviour: m_MinSize: {x: 100, y: 50} m_MaxSize: {x: 8096, y: 8096} vertical: 0 - controlID: 38 + controlID: 93 draggingID: 0 --- !u!114 &6 MonoBehaviour: @@ -142,7 +142,7 @@ MonoBehaviour: x: 0 y: 0 width: 1920 - height: 996 + height: 1032 m_MinSize: {x: 100, y: 121} m_MaxSize: {x: 4000, y: 4021} m_ActualView: {fileID: 26} @@ -169,7 +169,7 @@ MonoBehaviour: x: 0 y: 0 width: 1920 - height: 996 + height: 1032 m_MinSize: {x: 100, y: 121} m_MaxSize: {x: 4000, y: 4021} vertical: 0 @@ -199,7 +199,7 @@ MonoBehaviour: m_MinSize: {x: 300, y: 100} m_MaxSize: {x: 24288, y: 16192} vertical: 0 - controlID: 138 + controlID: 173 draggingID: 0 --- !u!114 &9 MonoBehaviour: @@ -220,8 +220,8 @@ MonoBehaviour: y: 0 width: 306 height: 939 - m_MinSize: {x: 275, y: 50} - m_MaxSize: {x: 4000, y: 4000} + m_MinSize: {x: 276, y: 71} + m_MaxSize: {x: 4001, y: 4021} m_ActualView: {fileID: 22} m_Panes: - {fileID: 22} @@ -245,7 +245,7 @@ MonoBehaviour: x: 0 y: 0 width: 405 - height: 511 + height: 572 m_MinSize: {x: 201, y: 221} m_MaxSize: {x: 4001, y: 4021} m_ActualView: {fileID: 23} @@ -263,23 +263,23 @@ MonoBehaviour: m_Enabled: 1 m_EditorHideFlags: 1 m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} - m_Name: ProjectBrowser + m_Name: ConsoleWindow m_EditorClassIdentifier: m_Children: [] m_Position: serializedVersion: 2 x: 0 - y: 511 + y: 572 width: 1614 - height: 428 - m_MinSize: {x: 231, y: 271} - m_MaxSize: {x: 10001, y: 10021} - m_ActualView: {fileID: 21} + height: 367 + m_MinSize: {x: 101, y: 121} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 25} m_Panes: - {fileID: 21} - {fileID: 25} - m_Selected: 0 - m_LastSelected: 1 + m_Selected: 1 + m_LastSelected: 0 --- !u!114 &12 MonoBehaviour: m_ObjectHideFlags: 52 @@ -375,7 +375,7 @@ MonoBehaviour: m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 16192} vertical: 1 - controlID: 48 + controlID: 137 draggingID: 0 --- !u!114 &16 MonoBehaviour: @@ -397,11 +397,11 @@ MonoBehaviour: x: 0 y: 0 width: 1614 - height: 511 + height: 572 m_MinSize: {x: 200, y: 50} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 49 + controlID: 127 draggingID: 0 --- !u!114 &17 MonoBehaviour: @@ -421,7 +421,7 @@ MonoBehaviour: x: 405 y: 0 width: 1209 - height: 511 + height: 572 m_MinSize: {x: 200, y: 200} m_MaxSize: {x: 4000, y: 4000} m_ActualView: {fileID: 24} @@ -580,9 +580,9 @@ MonoBehaviour: m_Pos: serializedVersion: 2 x: 0 - y: 584 + y: 645 width: 1613 - height: 407 + height: 346 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -594,7 +594,7 @@ MonoBehaviour: m_SaveData: [] m_OverlaysVisible: 1 m_SearchFilter: - m_NameFilter: datam + m_NameFilter: m_ClassNames: [] m_AssetLabels: [] m_AssetBundleNames: [] @@ -604,24 +604,24 @@ MonoBehaviour: m_SkipHidden: 0 m_SearchArea: 1 m_Folders: - - Assets/Pack/spine/Monster + - Assets/Script/SDK m_Globs: [] - m_OriginalText: datam + m_OriginalText: m_ImportLogFlags: 0 m_FilterByTypeIntersection: 0 m_ViewMode: 1 - m_StartGridSize: 16 + m_StartGridSize: 96 m_LastFolders: - - Assets/Pack/spine/Monster - m_LastFoldersGridSize: 16 + - Assets/Script/SDK + m_LastFoldersGridSize: 96 m_LastProjectPath: E:\UnityProject\Game\Blacksmith m_LockTracker: m_IsLocked: 0 m_FolderTreeState: - scrollPos: {x: 0, y: 164} - m_SelectedIDs: d4890000 - m_LastClickedID: 35284 - m_ExpandedIDs: 00000000fe88000000890000028900000489000006890000088900000a8900000c8900000e8900001089000012890000148900006c89000000ca9a3bffffff7f + scrollPos: {x: 0, y: 180} + m_SelectedIDs: 78730000 + m_LastClickedID: 29560 + m_ExpandedIDs: 00000000de880000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -649,7 +649,7 @@ MonoBehaviour: scrollPos: {x: 0, y: 0} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 00000000fe88000000890000028900000489000006890000088900000a8900000c8900000e890000108900001289000014890000 + m_ExpandedIDs: 00000000de880000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -674,10 +674,10 @@ MonoBehaviour: m_Icon: {fileID: 0} m_ResourceFile: m_ListAreaState: - m_SelectedInstanceIDs: - m_LastClickedInstanceID: 0 - m_HadKeyboardFocusLastEvent: 1 - m_ExpandedInstanceIDs: c623000044860000228500003c0001002e000100be740000c4740000c2740000b4740000b2740000ba740000bc740000b0740000c0740000b6740000b87400009c7400008c740000867400009274000098740000967400009a74000090740000a07400008e740000847400009e740000000000004683000040830000388300005c830000aa780000d0690000e4690000f06a0000c06b00003a6a000070360500107a0000e27900009e6a0000267a0000387a00001e7a000082500200f0790000287a00007c7d00007aa100002a130100381301001a8300000c83000068f90200 + m_SelectedInstanceIDs: 8e230100 + m_LastClickedInstanceID: 74638 + m_HadKeyboardFocusLastEvent: 0 + m_ExpandedInstanceIDs: c623000044860000228500003c0001002e000100be740000c4740000c2740000b4740000b2740000ba740000bc740000b0740000c0740000b6740000b87400009c7400008c740000867400009274000098740000967400009a74000090740000a07400008e740000847400009e740000000000004683000040830000388300005c830000aa780000d0690000e4690000f06a0000c06b00003a6a000070360500107a0000e27900009e6a0000267a0000387a00001e7a000082500200f0790000287a00007c7d00007aa100002a130100381301001a8300000c83000068f9020036890000c4d40000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -702,7 +702,7 @@ MonoBehaviour: m_ResourceFile: m_NewAssetIndexInList: -1 m_ScrollPosition: {x: 0, y: 0} - m_GridSize: 16 + m_GridSize: 96 m_SkipHiddenPackages: 0 m_DirectoriesAreaWidth: 379 --- !u!114 &22 @@ -742,7 +742,7 @@ MonoBehaviour: m_ObjectsLockedBeforeSerialization: [] m_InstanceIDsLockedBeforeSerialization: m_PreviewResizer: - m_CachedPref: 408 + m_CachedPref: 267 m_ControlHash: -371814159 m_PrefName: Preview_InspectorPreview m_LastInspectedObjectInstanceID: -1 @@ -775,7 +775,7 @@ MonoBehaviour: x: 0 y: 73 width: 404 - height: 490 + height: 551 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -789,9 +789,9 @@ MonoBehaviour: m_SceneHierarchy: m_TreeViewState: scrollPos: {x: 0, y: 0} - m_SelectedIDs: - m_LastClickedID: 0 - m_ExpandedIDs: 16fbffff + m_SelectedIDs: f6750000 + m_LastClickedID: 30198 + m_ExpandedIDs: 16fbffffb071000066720000fa740000f6750000ce7600006e7a000054850000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -838,7 +838,7 @@ MonoBehaviour: x: 405 y: 73 width: 1207 - height: 490 + height: 551 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -1210,9 +1210,9 @@ MonoBehaviour: m_PlayAudio: 0 m_AudioPlay: 0 m_Position: - m_Target: {x: 0.34727898, y: 0.0642358, z: -0.0056783454} + m_Target: {x: 722.6698, y: 877.4148, z: 21.222715} speed: 2 - m_Value: {x: 0.34727898, y: 0.0642358, z: -0.0056783454} + m_Value: {x: 736.0171, y: 877.95197, z: 21.00577} m_RenderMode: 0 m_CameraMode: drawMode: 0 @@ -1262,9 +1262,9 @@ MonoBehaviour: speed: 2 m_Value: {x: 0, y: 0, z: 0, w: 1} m_Size: - m_Target: 0.7729703 + m_Target: 460.4067 speed: 2 - m_Value: 0.7729703 + m_Value: 482.10126 m_Ortho: m_Target: 1 speed: 2 @@ -1310,9 +1310,9 @@ MonoBehaviour: m_Pos: serializedVersion: 2 x: 0 - y: 584 + y: 645 width: 1613 - height: 407 + height: 346 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -1343,10 +1343,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 1913 - y: 36 + x: 1920 + y: 0 width: 1920 - height: 975 + height: 1011 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -1402,22 +1402,22 @@ MonoBehaviour: x: 0 y: 21 width: 1920 - height: 954 - m_Scale: {x: 0.496875, y: 0.496875} - m_Translation: {x: 960, y: 477} + height: 990 + m_Scale: {x: 0.515625, y: 0.515625} + m_Translation: {x: 960, y: 495} m_MarginLeft: 0 m_MarginRight: 0 m_MarginTop: 0 m_MarginBottom: 0 m_LastShownAreaInsideMargins: serializedVersion: 2 - x: -1932.0756 + x: -1861.8182 y: -960 - width: 3864.1511 + width: 3723.6365 height: 1920 m_MinimalGUI: 1 - m_defaultScale: 0.496875 - m_LastWindowPixelSize: {x: 1920, y: 975} + m_defaultScale: 0.515625 + m_LastWindowPixelSize: {x: 1920, y: 1011} m_ClearInEditMode: 1 m_NoCameraWarning: 1 m_LowResolutionForAspectRatios: 01000001000000000000 diff --git a/Blacksmith/project.config.json b/Blacksmith/project.config.json index 1711a384..4f9df0e7 100644 --- a/Blacksmith/project.config.json +++ b/Blacksmith/project.config.json @@ -1 +1 @@ -{"appid":"tt71d3076eeee6cd1207","projectname":"Blacksmith","unity":{"build":{"webgl":"E:\\Project\\apk\\BlacksmithTT\\webgl_package-20241217_215110.zip","native":{"il2cpp":"","apk":"","fullApk":""},"instantGame":""},"publishType":"2","starkSdkVersion":"Without StarkSDK","unityToolsVersion":"4.0.4","unityEngineVersion":"2022.3.44f1c1","arch":"both"}} \ No newline at end of file +{"appid":"tt71d3076eeee6cd1207","projectname":"Blacksmith","unity":{"build":{"webgl":"E:\\Project\\apk\\BlacksmithTT\\webgl_package-20241219_231105.zip","native":{"il2cpp":"","apk":"","fullApk":""},"instantGame":""},"publishType":"2","starkSdkVersion":"Without StarkSDK","unityToolsVersion":"4.0.4","unityEngineVersion":"2022.3.44f1c1","arch":"both"}} \ No newline at end of file diff --git a/box1/Assets/Art/UI/TourPanel/图层-113-拷贝.png b/box1/Assets/Art/UI/TourPanel/图层-113-拷贝.png index c0cc59b9..0279fe48 100644 Binary files a/box1/Assets/Art/UI/TourPanel/图层-113-拷贝.png and b/box1/Assets/Art/UI/TourPanel/图层-113-拷贝.png differ diff --git a/box1/Assets/Art/UI/TourPanel/图层-7.png b/box1/Assets/Art/UI/TourPanel/图层-7.png index 5c5686af..d7a25f8e 100644 Binary files a/box1/Assets/Art/UI/TourPanel/图层-7.png and b/box1/Assets/Art/UI/TourPanel/图层-7.png differ diff --git a/box1/Assets/Editor/StarkBuilderSetting.asset b/box1/Assets/Editor/StarkBuilderSetting.asset index 86632380..59068897 100644 --- a/box1/Assets/Editor/StarkBuilderSetting.asset +++ b/box1/Assets/Editor/StarkBuilderSetting.asset @@ -44,7 +44,7 @@ MonoBehaviour: a: tt2f5a59e7b06fb35a07 version: autoVersion: 0 - b: E:\Project\apk\BoxDY\webgl_package-20241219_193511.zip + b: E:\Project\apk\BoxDY\webgl_package-20241220_150858.zip c: 0 d: 0 e: 0 diff --git a/box1/Assets/Prefab/TT/Canvas.prefab b/box1/Assets/Prefab/TT/Canvas.prefab index 045c2f3a..f902c0a5 100644 --- a/box1/Assets/Prefab/TT/Canvas.prefab +++ b/box1/Assets/Prefab/TT/Canvas.prefab @@ -1520,7 +1520,7 @@ RectTransform: 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: -1.3, y: -937.7} + m_AnchoredPosition: {x: -1.3, y: -993} m_SizeDelta: {x: 391.9306, y: 153.3641} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1777750521133303593 @@ -3617,8 +3617,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 42.7 - m_fontSizeBase: 42.7 + m_fontSize: 80.11 + m_fontSizeBase: 80.11 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 @@ -4946,9 +4946,9 @@ RectTransform: - {fileID: 4407554839348543697} m_Father: {fileID: 7460618339752046935} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 0, y: 0.5} - m_AnchoredPosition: {x: 752.3894, y: -865} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 32.389404, y: 674} m_SizeDelta: {x: 1258.5383, y: 657} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2607466784930045560 @@ -5489,7 +5489,7 @@ RectTransform: 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: -4.1, y: -167.9} + m_AnchoredPosition: {x: -4.1, y: 7} m_SizeDelta: {x: 200, y: 50} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7737798113653687556 @@ -9412,8 +9412,8 @@ RectTransform: 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: 38.25232, y: -3.4152832} - m_SizeDelta: {x: 407.5157, y: 157.7636} + m_AnchoredPosition: {x: 38.25232, y: -7.4287} + m_SizeDelta: {x: 407.5157, y: 334.5405} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7805938165157419832 CanvasRenderer: @@ -9436,7 +9436,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Color: {r: 0.2735849, g: 0.096917376, b: 0.068396226, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -9491,8 +9491,8 @@ RectTransform: 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: 33.31714, y: 0} - m_SizeDelta: {x: 383.7178, y: 157.7636} + m_AnchoredPosition: {x: 33.31714, y: -0.1866} + m_SizeDelta: {x: 383.7178, y: 334.5405} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7395204520487385570 CanvasRenderer: @@ -9515,7 +9515,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Color: {r: 0.2735849, g: 0.096917376, b: 0.068396226, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -11294,8 +11294,8 @@ RectTransform: 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: -288.8, y: -366} - m_SizeDelta: {x: 600, y: 200} + m_AnchoredPosition: {x: -288.8, y: -297.00818} + m_SizeDelta: {x: 600, y: 250} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1189448486084091865 CanvasRenderer: @@ -13876,7 +13876,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: nextButton: {fileID: 3696750439895456399} - closeButton: {fileID: 3696750439895456399} + closeButton: {fileID: 1116548788586638294} _taskItems: - {fileID: 4892135037313384635} - {fileID: 4259375861819933110} @@ -14214,7 +14214,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} m_Name: m_EditorClassIdentifier: - m_ShowMaskGraphic: 0 + m_ShowMaskGraphic: 1 --- !u!1 &4148930355118645081 GameObject: m_ObjectHideFlags: 0 @@ -17311,8 +17311,8 @@ RectTransform: 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: -8.8, y: 84.96} - m_SizeDelta: {x: 171, y: 42} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 404.4298, y: 99.3336} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &9222604521727227977 CanvasRenderer: @@ -21164,8 +21164,8 @@ RectTransform: 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: 355.6, y: -366} - m_SizeDelta: {x: 600, y: 200} + m_AnchoredPosition: {x: 355.6, y: -297.00818} + m_SizeDelta: {x: 600, y: 250} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7709714591550169046 CanvasRenderer: @@ -23254,14 +23254,14 @@ RectTransform: m_GameObject: {fileID: 6782719896288176743} 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_LocalScale: {x: 1.1149, y: 1.1149, z: 1.1149} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6295773640789065222} 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: 5.595215, y: 1.5986328} + m_AnchoredPosition: {x: 5.5688, y: 1.5698} m_SizeDelta: {x: 1063.1129, y: 599.49274} m_Pivot: {x: 0.49978384, y: 0.49958175} --- !u!222 &2558232756620150054 diff --git a/box1/Assets/Resources/Data/displaytxt.json b/box1/Assets/Resources/Data/displaytxt.json index ec721c4e..5011dd67 100644 --- a/box1/Assets/Resources/Data/displaytxt.json +++ b/box1/Assets/Resources/Data/displaytxt.json @@ -3209,15 +3209,15 @@ }, { "ID": 110011211, - "Text": "直接离开/n移动速度增加100,持续10秒" + "Text": "直接离开/n移动速度+100" }, { "ID": 110011311, - "Text": "先吃点东西/n移动时间增加30" + "Text": "先吃点东西/n移动时间+30" }, { "ID": 110011411, - "Text": "一边走一边参观店铺/n游历值每秒+300,持续10秒" + "Text": "一边走一边参观店铺/n游历值+15000" }, { "ID": 110011511, diff --git a/box1/Assets/Scenes/SampleScene.unity b/box1/Assets/Scenes/SampleScene.unity index 5a1a3687..2c819381 100644 --- a/box1/Assets/Scenes/SampleScene.unity +++ b/box1/Assets/Scenes/SampleScene.unity @@ -707,6 +707,22 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 452510549046969587, guid: bc915903b2ea8634f8eb7590222c05b0, type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 452510549046969587, guid: bc915903b2ea8634f8eb7590222c05b0, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5601368613170975588, guid: bc915903b2ea8634f8eb7590222c05b0, type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5601368613170975588, guid: bc915903b2ea8634f8eb7590222c05b0, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6587181790795372619, guid: bc915903b2ea8634f8eb7590222c05b0, type: 3} propertyPath: m_Name value: Canvas diff --git a/box1/Assets/Script/UI/EventSystem.cs b/box1/Assets/Script/UI/EventSystem.cs index 2e52dea3..ea522b54 100644 --- a/box1/Assets/Script/UI/EventSystem.cs +++ b/box1/Assets/Script/UI/EventSystem.cs @@ -30,21 +30,21 @@ public class EventSystem : MonoBehaviour case 4: var intSpeed0 = (float)speed * (((float)data.Event1) / 100); speed -= (int)intSpeed0; - points += data.Event2; + pointsRatio += data.Event2; break; case 5: var intSpeed1 = (float)speed * (((float)data.Event1) / 100); speed -= (int)intSpeed1; - pointsRatio += data.Event2; + points += data.Event2; break; case 6: moveTime -= data.Event1; - points += data.Event2; + pointsRatio += data.Event2; break; case 7: moveTime -= data.Event1; - pointsRatio += data.Event2; + points += data.Event2; break; } } diff --git a/box1/Assets/Script/UI/TourPanel.cs b/box1/Assets/Script/UI/TourPanel.cs index e821beda..8730d858 100644 --- a/box1/Assets/Script/UI/TourPanel.cs +++ b/box1/Assets/Script/UI/TourPanel.cs @@ -384,8 +384,8 @@ public class TourPanel : MonoBehaviour { BoxDebug.Log("video"); GameManager.ins.soundSystem.EventAudio(); - _travelEvent.EventID(index==1? _eventlist[0].eventID:_eventlist[0].eventIDvideo,lenght*JsonTab.Instance.tables.Level.Get(GameManager.ins.level).Target/10000, ref nowLenght,ref speed,ref moveTime,ref points,ref pointsRatio); - BoxDebug.Log(_eventlist[0].eventID+" "+5000*JsonTab.Instance.tables.Level.Get(GameManager.ins.level).Target/10000+" "+nowLenght+" "+speed+" "+points+" "+pointsRatio); + _travelEvent.EventID(index==1? _eventlist[0].eventID:_eventlist[0].eventIDvideo,lenght*JsonTab.Instance.tables.Level.Get(GameManager.ins.level).Target/10000, ref nowLenght,ref speed,ref moveTime,ref points,ref pointsNow); + BoxDebug.Log(_eventlist[0].eventID+" "+5000*JsonTab.Instance.tables.Level.Get(GameManager.ins.level).Target/10000+" "+nowLenght+" "+speed+" "+points+" "+pointsNow); speedText.text = speed.ToString(); RemoveEventList(); playing = true; @@ -395,8 +395,8 @@ public class TourPanel : MonoBehaviour else { GameManager.ins.soundSystem.EventAudio(); - _travelEvent.EventID(index==1? _eventlist[0].eventID:_eventlist[0].eventIDvideo,lenght*JsonTab.Instance.tables.Level.Get(GameManager.ins.level).Target/10000, ref nowLenght,ref speed,ref moveTime,ref points,ref pointsRatio); - BoxDebug.Log(_eventlist[0].eventID+" "+5000*JsonTab.Instance.tables.Level.Get(GameManager.ins.level).Target/10000+" "+nowLenght+" "+speed+" "+points+" "+pointsRatio); + _travelEvent.EventID(index==1? _eventlist[0].eventID:_eventlist[0].eventIDvideo,lenght*JsonTab.Instance.tables.Level.Get(GameManager.ins.level).Target/10000, ref nowLenght,ref speed,ref moveTime,ref points,ref pointsNow); + BoxDebug.Log(_eventlist[0].eventID+" "+5000*JsonTab.Instance.tables.Level.Get(GameManager.ins.level).Target/10000+" "+nowLenght+" "+speed+" "+points+" "+pointsNow); speedText.text = speed.ToString(); RemoveEventList(); playing = true; diff --git a/box1/MiniTemplate/Datas/文本表.xlsx b/box1/MiniTemplate/Datas/文本表.xlsx index f6c7c891..9d8560a6 100644 Binary files a/box1/MiniTemplate/Datas/文本表.xlsx and b/box1/MiniTemplate/Datas/文本表.xlsx differ diff --git a/box1/UserSettings/Layouts/default-2022.dwlt b/box1/UserSettings/Layouts/default-2022.dwlt index c24098c7..0e3aaec9 100644 --- a/box1/UserSettings/Layouts/default-2022.dwlt +++ b/box1/UserSettings/Layouts/default-2022.dwlt @@ -14,8 +14,8 @@ MonoBehaviour: m_EditorClassIdentifier: m_PixelRect: serializedVersion: 2 - x: 1940 - y: 215 + x: 512 + y: 200 width: 910 height: 721 m_ShowMode: 0 @@ -67,7 +67,7 @@ MonoBehaviour: width: 1904 height: 973 m_ShowMode: 4 - m_Title: Console + m_Title: Inspector m_RootView: {fileID: 12} m_MinSize: {x: 875, y: 300} m_MaxSize: {x: 10000, y: 10000} @@ -121,7 +121,7 @@ MonoBehaviour: m_MinSize: {x: 810, y: 721} m_MaxSize: {x: 4000, y: 4021} vertical: 0 - controlID: 2611 + controlID: 11281 draggingID: 0 --- !u!114 &6 MonoBehaviour: @@ -198,7 +198,7 @@ MonoBehaviour: m_MinSize: {x: 300, y: 100} m_MaxSize: {x: 24288, y: 16192} vertical: 0 - controlID: 145 + controlID: 177 draggingID: 0 --- !u!114 &9 MonoBehaviour: @@ -244,7 +244,7 @@ MonoBehaviour: x: 0 y: 0 width: 361 - height: 229 + height: 536 m_MinSize: {x: 200, y: 200} m_MaxSize: {x: 4000, y: 4000} m_ActualView: {fileID: 23} @@ -262,23 +262,23 @@ MonoBehaviour: m_Enabled: 1 m_EditorHideFlags: 1 m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} - m_Name: ConsoleWindow + m_Name: ProjectBrowser m_EditorClassIdentifier: m_Children: [] m_Position: serializedVersion: 2 x: 0 - y: 229 + y: 536 width: 1536 - height: 694 - m_MinSize: {x: 101, y: 121} - m_MaxSize: {x: 4001, y: 4021} - m_ActualView: {fileID: 25} + height: 387 + m_MinSize: {x: 231, y: 271} + m_MaxSize: {x: 10001, y: 10021} + m_ActualView: {fileID: 21} m_Panes: - {fileID: 21} - {fileID: 25} - m_Selected: 1 - m_LastSelected: 0 + m_Selected: 0 + m_LastSelected: 1 --- !u!114 &12 MonoBehaviour: m_ObjectHideFlags: 52 @@ -374,7 +374,7 @@ MonoBehaviour: m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 16192} vertical: 1 - controlID: 86 + controlID: 102 draggingID: 0 --- !u!114 &16 MonoBehaviour: @@ -396,11 +396,11 @@ MonoBehaviour: x: 0 y: 0 width: 1536 - height: 229 + height: 536 m_MinSize: {x: 200, y: 50} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 48 + controlID: 103 draggingID: 0 --- !u!114 &17 MonoBehaviour: @@ -420,7 +420,7 @@ MonoBehaviour: x: 361 y: 0 width: 1175 - height: 229 + height: 536 m_MinSize: {x: 200, y: 200} m_MaxSize: {x: 4000, y: 4000} m_ActualView: {fileID: 24} @@ -449,8 +449,8 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 1940 - y: 215 + x: 512 + y: 200 width: 910 height: 700 m_SerializedDataModeController: @@ -528,7 +528,7 @@ MonoBehaviour: m_VAllowExceedBaseRangeMax: 1 m_ScaleWithWindow: 0 m_HSlider: 0 - m_VSlider: 1 + m_VSlider: 0 m_IgnoreScrollWheelUntilClicked: 0 m_EnableMouseInput: 1 m_EnableSliderZoomHorizontal: 0 @@ -541,18 +541,18 @@ MonoBehaviour: y: 21 width: 1920 height: 990 - m_Scale: {x: 0.38875362, y: 0.38875362} - m_Translation: {x: 960, y: 497.60464} + m_Scale: {x: 0.38671875, y: 0.38671875} + m_Translation: {x: 960, y: 495} m_MarginLeft: 0 m_MarginRight: 0 m_MarginTop: 0 m_MarginBottom: 0 m_LastShownAreaInsideMargins: serializedVersion: 2 - x: -2469.4304 + x: -2482.4243 y: -1280 - width: 4938.861 - height: 2546.6 + width: 4964.8486 + height: 2560 m_MinimalGUI: 1 m_defaultScale: 0.38671875 m_LastWindowPixelSize: {x: 1920, y: 1011} @@ -643,9 +643,9 @@ MonoBehaviour: m_Pos: serializedVersion: 2 x: 8 - y: 310 + y: 617 width: 1535 - height: 673 + height: 366 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -667,7 +667,7 @@ MonoBehaviour: m_SkipHidden: 0 m_SearchArea: 1 m_Folders: - - Assets/Script/UI + - Assets/Art/UI/TourPanel m_Globs: [] m_OriginalText: m_ImportLogFlags: 0 @@ -675,16 +675,16 @@ MonoBehaviour: m_ViewMode: 1 m_StartGridSize: 96 m_LastFolders: - - Assets/Script/UI + - Assets/Art/UI/TourPanel m_LastFoldersGridSize: 96 m_LastProjectPath: E:\UnityProject\Game\box1 m_LockTracker: m_IsLocked: 0 m_FolderTreeState: - scrollPos: {x: 0, y: 56} - m_SelectedIDs: 0c820000 - m_LastClickedID: 33292 - m_ExpandedIDs: 00000000c07f0000c27f0000d48100003c9900008899000000ca9a3bffffff7f + scrollPos: {x: 0, y: 230} + m_SelectedIDs: 02910200 + m_LastClickedID: 168194 + m_ExpandedIDs: 00000000429800004498000050980000a0980000be98000000ca9a3bffffff7f m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -712,7 +712,7 @@ MonoBehaviour: scrollPos: {x: 0, y: 0} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 00000000c07f0000c27f0000 + m_ExpandedIDs: m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -740,7 +740,7 @@ MonoBehaviour: m_SelectedInstanceIDs: m_LastClickedInstanceID: 0 m_HadKeyboardFocusLastEvent: 1 - m_ExpandedInstanceIDs: c6230000448600003c0001002e000100be740000c4740000c2740000b4740000b2740000ba740000bc740000b0740000c0740000b6740000b87400009c7400008c740000867400009274000098740000967400009a74000090740000a07400008e740000847400009e740000ce7700002ea800005ea80000006700001a7b0000187b0000107a0000c27900001ceb0000ea7a0000e07a0000d4c70000967e0000767f0000d67f0000c07d0000b4630000547d0000e87d00003a7d000000000000a4b5000024b700008e7d000084630100 + m_ExpandedInstanceIDs: c6230000448600003c0001002e000100be740000c4740000c2740000b4740000b2740000ba740000bc740000b0740000c0740000b6740000b87400009c7400008c740000867400009274000098740000967400009a74000090740000a07400008e740000847400009e740000ce7700002ea800005ea80000006700001a7b0000187b0000107a0000c27900001ceb0000ea7a0000e07a0000d4c70000967e0000767f0000d67f0000c07d0000b4630000547d0000e87d00003a7d000000000000a4b5000024b700008e7d000084630100627d0000647d0000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -764,7 +764,7 @@ MonoBehaviour: m_Icon: {fileID: 0} m_ResourceFile: m_NewAssetIndexInList: -1 - m_ScrollPosition: {x: 0, y: 0} + m_ScrollPosition: {x: 0, y: 288.5} m_GridSize: 96 m_SkipHiddenPackages: 0 m_DirectoriesAreaWidth: 207 @@ -838,7 +838,7 @@ MonoBehaviour: x: 8 y: 81 width: 360 - height: 208 + height: 515 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -854,7 +854,7 @@ MonoBehaviour: scrollPos: {x: 0, y: 0} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: e875ffff3276ffff7891ffff46a5ffff90a5ffffd0c0ffff16fbffff7abe0000 + m_ExpandedIDs: 3094fcffac94fcfff2affcff40f1feff8af1feffd00cfffffee5ffff10e6ffff56efffff8cf2ffff7ef5ffff16fbffffa65501000a59010012620100 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -901,7 +901,7 @@ MonoBehaviour: x: 369 y: 81 width: 1173 - height: 208 + height: 515 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -1273,9 +1273,9 @@ MonoBehaviour: m_PlayAudio: 0 m_AudioPlay: 0 m_Position: - m_Target: {x: 752.8704, y: 690.9177, z: 12.530368} + m_Target: {x: 510.46848, y: 679.2143, z: -4.5234733} speed: 2 - m_Value: {x: 752.8704, y: 690.9177, z: 12.530368} + m_Value: {x: 510.46848, y: 679.2143, z: -4.5234733} m_RenderMode: 0 m_CameraMode: drawMode: 0 @@ -1325,9 +1325,9 @@ MonoBehaviour: speed: 2 m_Value: {x: 0, y: 0, z: 0, w: 1} m_Size: - m_Target: 215.56929 + m_Target: 474.26102 speed: 2 - m_Value: 215.56929 + m_Value: 474.26102 m_Ortho: m_Target: 1 speed: 2 @@ -1373,9 +1373,9 @@ MonoBehaviour: m_Pos: serializedVersion: 2 x: 8 - y: 310 + y: 617 width: 1535 - height: 673 + height: 366 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 diff --git a/box1/project.config.json b/box1/project.config.json index c7760c71..4f1afe17 100644 --- a/box1/project.config.json +++ b/box1/project.config.json @@ -1 +1 @@ -{"appid":"tt2f5a59e7b06fb35a07","projectname":"box1","unity":{"build":{"webgl":"E:\\Project\\apk\\BoxDY\\webgl_package-20241220_101712.zip","native":{"il2cpp":"E:/Project/apk/BoxDY\\box-All-20241106_135915\\il2cppOutput.zip","apk":"E:/Project/apk/BoxDY\\box-All-20241106_135915\\launcher-release.apk","fullApk":""},"instantGame":""},"publishType":"2","starkSdkVersion":"Without StarkSDK","unityToolsVersion":"4.0.4","unityEngineVersion":"2022.3.44f1c1","arch":"both"}} \ No newline at end of file +{"appid":"tt2f5a59e7b06fb35a07","projectname":"box1","unity":{"build":{"webgl":"E:\\Project\\apk\\BoxDY\\webgl_package-20241220_150858.zip","native":{"il2cpp":"E:/Project/apk/BoxDY\\box-All-20241106_135915\\il2cppOutput.zip","apk":"E:/Project/apk/BoxDY\\box-All-20241106_135915\\launcher-release.apk","fullApk":""},"instantGame":""},"publishType":"2","starkSdkVersion":"Without StarkSDK","unityToolsVersion":"4.0.4","unityEngineVersion":"2022.3.44f1c1","arch":"both"}} \ No newline at end of file