diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a.atlas.txt b/box1/Assets/Art/Spine/NPC/bb_npc_a.atlas.txt new file mode 100644 index 00000000..7e1cc116 --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a.atlas.txt @@ -0,0 +1,94 @@ +bb_npc_a.png + size: 512, 512 + filter: Linear, Linear + scale: 0.98 +Foot_a + bounds: 345, 16, 51, 37 + rotate: 180 +Foot_b + bounds: 467, 13, 43, 38 +Volt_Arm_L + bounds: 285, 23, 60, 76 + offsets: 0, 0, 60, 77 + rotate: 270 +Volt_Arm_R + bounds: 461, 416, 47, 94 + offsets: 0, 0, 47, 95 +Volt_Forearm_L + bounds: 462, 349, 48, 62 + offsets: 0, 1, 48, 63 +Volt_Forearm_R + bounds: 206, 34, 62, 70 + offsets: 2, 4, 65, 74 +Volt_Hair-Front_03 + bounds: 343, 53, 89, 167 + offsets: 5, 0, 98, 167 + rotate: 90 +Volt_Hair-Front_04 + bounds: 408, 353, 64, 157 + offsets: 1, 0, 67, 158 +Volt_Hair-Front_05 + bounds: 237, 142, 117, 250 + offsets: 0, 5, 117, 255 + rotate: 90 +Volt_Hair-Front_06 + bounds: 2, 277, 176, 233 + offsets: 11, 18, 197, 251 +Volt_Hair-Front_a_01 + bounds: 122, 56, 109, 72 +Volt_Hair-Front_a_02 + bounds: 319, 226, 61, 78 + rotate: 90 +Volt_Hair-Front_a_03 + bounds: 396, 35, 33, 106 + offsets: 8, 1, 41, 107 + rotate: 90 +Volt_Hair-Front_b_01 + bounds: 118, 28, 29, 98 + rotate: 90 +Volt_Hair-Front_b_02 + bounds: 91, 22, 36, 89 +Volt_Hand_L + bounds: 2, 121, 50, 40 + offsets: 0, 1, 53, 44 + rotate: 270 +Volt_Hand_R + bounds: 194, 211, 43, 44 + offsets: 0, 1, 43, 45 +Volt_Head + bounds: 306, 347, 136, 163 + offsets: 1, 1, 146, 166 + rotate: 180 +Volt_Neck + bounds: 481, 137, 29, 36 + offsets: 1, 1, 30, 41 + rotate: 180 +Volt_Skirt + bounds: 317, 240, 113, 172 + offsets: 0, 0, 118, 172 + rotate: 270 +Volt_Skirt1 + bounds: 165, 255, 161, 255 + offsets: 0, 9, 161, 264 + rotate: 180 +Volt_Spine1 + bounds: 2, 34, 83, 87 + offsets: 1, 1, 86, 89 + rotate: 90 +Volt_Spine2 + bounds: 86, 199, 108, 88 + offsets: 0, 6, 109, 97 +book + bounds: 229, 79, 126, 115 + offsets: 0, 1, 126, 118 + rotate: 180 +eye + bounds: 399, 217, 49, 34 + offsets: 1, 1, 51, 36 +eye2 + bounds: 282, 218, 53, 46 + offsets: 2, 1, 57, 48 + rotate: 180 +maozi + bounds: 2, 112, 240, 195 + offsets: 7, 5, 247, 201 diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a.atlas.txt.meta b/box1/Assets/Art/Spine/NPC/bb_npc_a.atlas.txt.meta new file mode 100644 index 00000000..6a371457 --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a.atlas.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: c30dd484a46595043a900af35434a80c +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a.png b/box1/Assets/Art/Spine/NPC/bb_npc_a.png new file mode 100644 index 00000000..499c6950 Binary files /dev/null and b/box1/Assets/Art/Spine/NPC/bb_npc_a.png differ diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a.png.meta b/box1/Assets/Art/Spine/NPC/bb_npc_a.png.meta new file mode 100644 index 00000000..eaecda8c --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a.png.meta @@ -0,0 +1,153 @@ +fileFormatVersion: 2 +guid: c129fa23d557d3b4eaf1dc80a29301c7 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + 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: 0 + 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: 0 + 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: 0 + 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/box1/Assets/Art/Spine/NPC/bb_npc_a.skel.bytes b/box1/Assets/Art/Spine/NPC/bb_npc_a.skel.bytes new file mode 100644 index 00000000..ee8ca88a Binary files /dev/null and b/box1/Assets/Art/Spine/NPC/bb_npc_a.skel.bytes differ diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a.skel.bytes.meta b/box1/Assets/Art/Spine/NPC/bb_npc_a.skel.bytes.meta new file mode 100644 index 00000000..81f99305 --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a.skel.bytes.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f5f85697593372147b11da360b4029d8 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a_Atlas.asset b/box1/Assets/Art/Spine/NPC/bb_npc_a_Atlas.asset new file mode 100644 index 00000000..abf19604 --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a_Atlas.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6b194f808b1af6499c93410e504af42, type: 3} + m_Name: bb_npc_a_Atlas + m_EditorClassIdentifier: + textureLoadingMode: 0 + onDemandTextureLoader: {fileID: 0} + atlasFile: {fileID: 4900000, guid: c30dd484a46595043a900af35434a80c, type: 3} + materials: + - {fileID: 2100000, guid: ec44319479e536f4fa3400cfb8ced61a, type: 2} diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a_Atlas.asset.meta b/box1/Assets/Art/Spine/NPC/bb_npc_a_Atlas.asset.meta new file mode 100644 index 00000000..381b71cd --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a_Atlas.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f922b6151de3a7d48bc61acfea4bcf86 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a_Material.mat b/box1/Assets/Art/Spine/NPC/bb_npc_a_Material.mat new file mode 100644 index 00000000..16182227 --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a_Material.mat @@ -0,0 +1,48 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: bb_npc_a_Material + m_Shader: {fileID: 4800000, guid: 1e8a610c9e01c3648bac42585e5fc676, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: + - _USE8NEIGHBOURHOOD_ON + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: c129fa23d557d3b4eaf1dc80a29301c7, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _Cutoff: 0.1 + - _OutlineMipLevel: 0 + - _OutlineOpaqueAlpha: 1 + - _OutlineReferenceTexWidth: 1024 + - _OutlineSmoothness: 1 + - _OutlineWidth: 3 + - _StencilComp: 8 + - _StencilRef: 1 + - _StraightAlphaInput: 0 + - _ThresholdEnd: 0.25 + - _Use8Neighbourhood: 1 + - _UseScreenSpaceOutlineWidth: 0 + m_Colors: + - _OutlineColor: {r: 1, g: 1, b: 0, a: 1} + - _VeColor: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a_Material.mat.meta b/box1/Assets/Art/Spine/NPC/bb_npc_a_Material.mat.meta new file mode 100644 index 00000000..4150c1ab --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a_Material.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ec44319479e536f4fa3400cfb8ced61a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a_SkeletonData.asset b/box1/Assets/Art/Spine/NPC/bb_npc_a_SkeletonData.asset new file mode 100644 index 00000000..421dffef --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a_SkeletonData.asset @@ -0,0 +1,31 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f1b3b4b945939a54ea0b23d3396115fb, type: 3} + m_Name: bb_npc_a_SkeletonData + m_EditorClassIdentifier: + atlasAssets: + - {fileID: 11400000, guid: f922b6151de3a7d48bc61acfea4bcf86, type: 2} + scale: 0.01 + skeletonJSON: {fileID: 4900000, guid: f5f85697593372147b11da360b4029d8, type: 3} + isUpgradingBlendModeMaterials: 0 + blendModeMaterials: + requiresBlendModeMaterials: 0 + applyAdditiveMaterial: 1 + additiveMaterials: [] + multiplyMaterials: [] + screenMaterials: [] + skeletonDataModifiers: [] + fromAnimation: [] + toAnimation: [] + duration: [] + defaultMix: 0.2 + controller: {fileID: 0} diff --git a/box1/Assets/Art/Spine/NPC/bb_npc_a_SkeletonData.asset.meta b/box1/Assets/Art/Spine/NPC/bb_npc_a_SkeletonData.asset.meta new file mode 100644 index 00000000..0f2d17e1 --- /dev/null +++ b/box1/Assets/Art/Spine/NPC/bb_npc_a_SkeletonData.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b10367fd98eb77d449a1a6cb641b58a9 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Editor/StarkBuilderSetting.asset b/box1/Assets/Editor/StarkBuilderSetting.asset index c4cf6d6e..86632380 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-20241217_181359.zip + b: E:\Project\apk\BoxDY\webgl_package-20241219_193511.zip c: 0 d: 0 e: 0 diff --git a/box1/Assets/Prefab/Dot.prefab b/box1/Assets/Prefab/Dot.prefab new file mode 100644 index 00000000..8f2b3c66 --- /dev/null +++ b/box1/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/box1/Assets/Prefab/Dot.prefab.meta b/box1/Assets/Prefab/Dot.prefab.meta new file mode 100644 index 00000000..edac2820 --- /dev/null +++ b/box1/Assets/Prefab/Dot.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 65a3b817210cc024eaafdb268074b6a3 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Prefab/TT/Canvas.prefab b/box1/Assets/Prefab/TT/Canvas.prefab index ceef3dfb..045c2f3a 100644 --- a/box1/Assets/Prefab/TT/Canvas.prefab +++ b/box1/Assets/Prefab/TT/Canvas.prefab @@ -3231,7 +3231,7 @@ MonoBehaviour: m_Font: {fileID: 12800000, guid: 2198231395b4bc14eb6e7595452efc46, type: 3} m_FontSize: 106 m_FontStyle: 0 - m_BestFit: 0 + m_BestFit: 1 m_MinSize: 5 m_MaxSize: 130 m_Alignment: 4 @@ -3240,9 +3240,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: 'X5 - -' + m_Text: X5 --- !u!1 &1080471727709209479 GameObject: m_ObjectHideFlags: 0 @@ -7747,6 +7745,7 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 6650044064599044723} + - {fileID: 9100024851915812621} m_Father: {fileID: 6198905375397856769} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} @@ -7836,114 +7835,6 @@ MonoBehaviour: m_OnClick: m_PersistentCalls: m_Calls: [] ---- !u!1 &2210164107630862768 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5179702525778439863} - - component: {fileID: 9025752510586302063} - - component: {fileID: 6315124630233258545} - m_Layer: 0 - m_Name: SkeletonGraphic (bb_npc) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &5179702525778439863 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2210164107630862768} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1.9551, y: 1.9551, z: 1.9551} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 6654209613770501643} - 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: 417.3, y: -1172} - m_SizeDelta: {x: 236.68321, y: 528.3182} - m_Pivot: {x: 0.5455747, y: 0.010167901} ---- !u!222 &9025752510586302063 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2210164107630862768} - m_CullTransparentMesh: 0 ---- !u!114 &6315124630233258545 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2210164107630862768} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d85b887af7e6c3f45a2e2d2920d641bc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 2100000, guid: b66cf7a186d13054989b33a5c90044e4, type: 2} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - skeletonDataAsset: {fileID: 11400000, guid: 5477951b83617724d9800055a0586e77, type: 2} - additiveMaterial: {fileID: 2100000, guid: 2e8245019faeb8c43b75f9ca3ac8ee34, type: 2} - multiplyMaterial: {fileID: 2100000, guid: e74a1f8978a7da348a721508d0d58834, type: 2} - screenMaterial: {fileID: 2100000, guid: bab24c479f34eec45be6ea8595891569, type: 2} - m_SkeletonColor: {r: 1, g: 1, b: 1, a: 1} - initialSkinName: default - initialFlipX: 0 - initialFlipY: 0 - startingAnimation: idle_3 - startingLoop: 1 - timeScale: 1 - freeze: 0 - layoutScaleMode: 0 - referenceSize: {x: 236.68321, y: 528.3182} - pivotOffset: {x: 0, y: 0} - referenceScale: 1 - layoutScale: 1 - rectTransformSize: {x: 236.68321, y: 528.3182} - editReferenceRect: 0 - updateWhenInvisible: 3 - allowMultipleCanvasRenderers: 0 - canvasRenderers: [] - separatorSlotNames: [] - enableSeparatorSlots: 0 - separatorParts: [] - updateSeparatorPartLocation: 1 - updateSeparatorPartScale: 0 - disableMeshAssignmentOnOverride: 1 - physicsPositionInheritanceFactor: {x: 1, y: 1} - physicsRotationInheritanceFactor: 1 - physicsMovementRelativeTo: {fileID: 0} - meshGenerator: - settings: - useClipping: 1 - zSpacing: 0 - tintBlack: 0 - canvasGroupCompatible: 0 - pmaVertexColors: 1 - addNormals: 0 - calculateTangents: 0 - immutableTriangles: 0 - updateTiming: 1 - unscaledTime: 0 --- !u!1 &2248535889820549545 GameObject: m_ObjectHideFlags: 0 @@ -12429,6 +12320,7 @@ RectTransform: - {fileID: 5492358285790440662} - {fileID: 962097388165462059} - {fileID: 6534034426030438057} + - {fileID: 7091328550933537509} m_Father: {fileID: 6654209613770501643} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -14372,6 +14264,81 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4148930355118645081} m_CullTransparentMesh: 1 +--- !u!1 &4154333616953232638 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 9100024851915812621} + - component: {fileID: 670959592432387610} + - component: {fileID: 8478030813167587044} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &9100024851915812621 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4154333616953232638} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 7237834605103873054} + 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: -195, y: 8} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &670959592432387610 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4154333616953232638} + m_CullTransparentMesh: 1 +--- !u!114 &8478030813167587044 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4154333616953232638} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: c485283eb659eb543a47b4a4d1f3d14e, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 --- !u!1 &4190969322915062787 GameObject: m_ObjectHideFlags: 0 @@ -16797,6 +16764,81 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &4951808519399510696 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4022505526474775260} + - component: {fileID: 5940775029783731549} + - component: {fileID: 6723263793809616963} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &4022505526474775260 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4951808519399510696} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 246303138631028839} + 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: 53, y: -41} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &5940775029783731549 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4951808519399510696} + m_CullTransparentMesh: 1 +--- !u!114 &6723263793809616963 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4951808519399510696} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: c485283eb659eb543a47b4a4d1f3d14e, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 --- !u!1 &4965315414362420761 GameObject: m_ObjectHideFlags: 0 @@ -20101,6 +20143,7 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 6307414566746629443} + - {fileID: 4022505526474775260} m_Father: {fileID: 1148176990856012401} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} @@ -20724,6 +20767,114 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!1 &6171088427700437838 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7091328550933537509} + - component: {fileID: 3047301889629554520} + - component: {fileID: 8598020076202173489} + m_Layer: 0 + m_Name: SkeletonGraphic (bb_npc_a) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &7091328550933537509 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6171088427700437838} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1.8182281, y: 1.8182281, z: 1.8182281} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1181118062073204378} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -342.94, y: 194} + m_SizeDelta: {x: 285.9204, y: 625.97095} + m_Pivot: {x: 0.4660751, y: 0.00045905248} +--- !u!222 &3047301889629554520 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6171088427700437838} + m_CullTransparentMesh: 0 +--- !u!114 &8598020076202173489 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6171088427700437838} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d85b887af7e6c3f45a2e2d2920d641bc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 2100000, guid: b66cf7a186d13054989b33a5c90044e4, type: 2} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + skeletonDataAsset: {fileID: 11400000, guid: b10367fd98eb77d449a1a6cb641b58a9, type: 2} + additiveMaterial: {fileID: 2100000, guid: 2e8245019faeb8c43b75f9ca3ac8ee34, type: 2} + multiplyMaterial: {fileID: 2100000, guid: e74a1f8978a7da348a721508d0d58834, type: 2} + screenMaterial: {fileID: 2100000, guid: bab24c479f34eec45be6ea8595891569, type: 2} + m_SkeletonColor: {r: 1, g: 1, b: 1, a: 1} + initialSkinName: default + initialFlipX: 0 + initialFlipY: 0 + startingAnimation: idle_40_2 + startingLoop: 1 + timeScale: 1 + freeze: 0 + layoutScaleMode: 0 + referenceSize: {x: 285.9204, y: 625.97095} + pivotOffset: {x: 0, y: 0} + referenceScale: 1 + layoutScale: 1 + rectTransformSize: {x: 285.9204, y: 625.97095} + editReferenceRect: 0 + updateWhenInvisible: 3 + allowMultipleCanvasRenderers: 0 + canvasRenderers: [] + separatorSlotNames: [] + enableSeparatorSlots: 0 + separatorParts: [] + updateSeparatorPartLocation: 1 + updateSeparatorPartScale: 0 + disableMeshAssignmentOnOverride: 1 + physicsPositionInheritanceFactor: {x: 1, y: 1} + physicsRotationInheritanceFactor: 1 + physicsMovementRelativeTo: {fileID: 0} + meshGenerator: + settings: + useClipping: 1 + zSpacing: 0 + tintBlack: 0 + canvasGroupCompatible: 0 + pmaVertexColors: 1 + addNormals: 0 + calculateTangents: 0 + immutableTriangles: 0 + updateTiming: 1 + unscaledTime: 0 --- !u!1 &6193430688207260276 GameObject: m_ObjectHideFlags: 0 @@ -31050,7 +31201,6 @@ RectTransform: m_Children: - {fileID: 1204138011143493504} - {fileID: 1181118062073204378} - - {fileID: 5179702525778439863} - {fileID: 7179052083662462338} - {fileID: 2956597183663917415} - {fileID: 2250189682806632129} diff --git a/box1/Assets/SEExportedGame.meta b/box1/Assets/SEExportedGame.meta new file mode 100644 index 00000000..805fe504 --- /dev/null +++ b/box1/Assets/SEExportedGame.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f5bddf6df832a4c5bbcc29007154a5aa +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/SEExportedGame/Plugin.meta b/box1/Assets/SEExportedGame/Plugin.meta new file mode 100644 index 00000000..9001d0d1 --- /dev/null +++ b/box1/Assets/SEExportedGame/Plugin.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 779630046d1254c59bdf10a8ff65f844 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll b/box1/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll new file mode 100644 index 00000000..7a8a6b5d Binary files /dev/null and b/box1/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll differ diff --git a/box1/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll.meta b/box1/Assets/SEExportedGame/Plugin/Newtonsoft.Json.dll.meta new file mode 100644 index 00000000..8d562d13 --- /dev/null +++ b/box1/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/box1/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib b/box1/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib new file mode 100644 index 00000000..77ba35e2 --- /dev/null +++ b/box1/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/box1/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib.meta b/box1/Assets/SEExportedGame/Plugin/SolarEngineBridge.jslib.meta new file mode 100644 index 00000000..9344ec41 --- /dev/null +++ b/box1/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/box1/Assets/SEExportedGame/Resources.meta b/box1/Assets/SEExportedGame/Resources.meta new file mode 100644 index 00000000..033b6a39 --- /dev/null +++ b/box1/Assets/SEExportedGame/Resources.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4c0742733c10d407dac9897b13010b12 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/SEExportedGame/Resources/SESDKBridge.prefab b/box1/Assets/SEExportedGame/Resources/SESDKBridge.prefab new file mode 100644 index 00000000..ef0f9ef4 --- /dev/null +++ b/box1/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/box1/Assets/SEExportedGame/Resources/SESDKBridge.prefab.meta b/box1/Assets/SEExportedGame/Resources/SESDKBridge.prefab.meta new file mode 100644 index 00000000..2abd4b9e --- /dev/null +++ b/box1/Assets/SEExportedGame/Resources/SESDKBridge.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 61bf86c8e520541499c1a04fd9c75d50 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/SEExportedGame/Script.meta b/box1/Assets/SEExportedGame/Script.meta new file mode 100644 index 00000000..2d1d114c --- /dev/null +++ b/box1/Assets/SEExportedGame/Script.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9891fc9423dab4924ac467b6d3f5cce4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/SEExportedGame/Script/Initialize.meta b/box1/Assets/SEExportedGame/Script/Initialize.meta new file mode 100644 index 00000000..c0f61960 --- /dev/null +++ b/box1/Assets/SEExportedGame/Script/Initialize.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ac32748d01039478590ff7b4ed973c4c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/SEExportedGame/Script/Initialize/Initialize.cs b/box1/Assets/SEExportedGame/Script/Initialize/Initialize.cs new file mode 100644 index 00000000..9f3b640b --- /dev/null +++ b/box1/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/box1/Assets/SEExportedGame/Script/Initialize/Initialize.cs.meta b/box1/Assets/SEExportedGame/Script/Initialize/Initialize.cs.meta new file mode 100644 index 00000000..7e280359 --- /dev/null +++ b/box1/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/box1/Assets/SEExportedGame/Script/SESDKBridge.cs b/box1/Assets/SEExportedGame/Script/SESDKBridge.cs new file mode 100644 index 00000000..4ddd8aef --- /dev/null +++ b/box1/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/box1/Assets/SEExportedGame/Script/SESDKBridge.cs.meta b/box1/Assets/SEExportedGame/Script/SESDKBridge.cs.meta new file mode 100644 index 00000000..19681f07 --- /dev/null +++ b/box1/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/box1/Assets/SEExportedGame/Script/ThirdParty.meta b/box1/Assets/SEExportedGame/Script/ThirdParty.meta new file mode 100644 index 00000000..09261dd4 --- /dev/null +++ b/box1/Assets/SEExportedGame/Script/ThirdParty.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5546a78859f51456db4f10d75f01c677 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs b/box1/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs new file mode 100644 index 00000000..ebf6e7b0 --- /dev/null +++ b/box1/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/box1/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs.meta b/box1/Assets/SEExportedGame/Script/ThirdParty/SingletonMonoBehaviour.cs.meta new file mode 100644 index 00000000..c9154349 --- /dev/null +++ b/box1/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/box1/Assets/Scenes/SampleScene.unity b/box1/Assets/Scenes/SampleScene.unity index 66a9d6e7..5a1a3687 100644 --- a/box1/Assets/Scenes/SampleScene.unity +++ b/box1/Assets/Scenes/SampleScene.unity @@ -781,6 +781,63 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 8558c55782ced8d498b11bbdc51877da, type: 3} +--- !u!1001 &2473429094783586364 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalPosition.x + value: 752.8704 + objectReference: {fileID: 0} + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalPosition.y + value: 690.9177 + objectReference: {fileID: 0} + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalPosition.z + value: 12.530368 + objectReference: {fileID: 0} + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5511837541217477193, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7996413630272934192, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} + propertyPath: m_Name + value: Dot + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 65a3b817210cc024eaafdb268074b6a3, type: 3} --- !u!1001 &6350540495189884974 PrefabInstance: m_ObjectHideFlags: 0 @@ -789,14 +846,30 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 0} m_Modifications: + - target: {fileID: 13539914173500846, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 101981920482965379, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 140739066997771561, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 146239700006065110, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 275433198954232361, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 293878380505198894, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 399583209142345062, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -805,6 +878,10 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 427312082177717465, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 463536456233581860, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -817,6 +894,10 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 569367925139061679, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 574110109472801264, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -825,10 +906,18 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 672397880994989394, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 690542173204726453, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 800445593705094731, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 853082062858835613, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -837,10 +926,18 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 951549555492749153, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 955525566430849879, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 998206415153442536, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 1032786419761707333, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -849,10 +946,34 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 1104059770847419387, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1133406542365130334, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1194245423954463429, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1236943870184674625, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 1246724064241389885, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 1256909619019871864, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1261447892938882862, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 1278255558200195849, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -869,6 +990,30 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 1622096453249654763, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1650697814616937462, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1695312481130688362, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1705757624636349858, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1736207415079311663, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1745444888137510369, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 1765529696863400255, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -877,6 +1022,34 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 1825007208839617839, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1855041654758759155, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1959224899517438257, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1981732296325926091, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2029506659874686416, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2036685355217704693, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2108628330589427839, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 2157349501725607893, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -885,6 +1058,22 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 2406376413314382298, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2463725594870749090, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2463725594870749090, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.data[0] + value: + objectReference: {fileID: 2100000, guid: 1aa59b1158553234ebece6d42b7ce8b1, type: 2} + - target: {fileID: 2541231066948828634, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 2609930386862033751, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -909,6 +1098,14 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 2948124142983027802, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3009671072982722174, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 3034350158147774848, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -921,6 +1118,14 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 3104891691938007199, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3175763013214432973, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 3235098153842224307, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -929,6 +1134,10 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 3321535751323459735, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 3324320456716558481, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -937,6 +1146,14 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 3362095998672979514, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3392966681162479266, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 3436071964701387297, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -945,18 +1162,42 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 3513438100892485283, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 3588928226918631623, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 3634709845660820898, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3707703457251193971, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 3708655602384221308, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 3741523254374562906, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 3771933587432329968, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 3813630888284879083, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3892217595151719095, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 3893651598149527955, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -969,6 +1210,14 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 4030765368293210043, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4099650739054912945, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 4102815739351487264, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -985,6 +1234,14 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 4374749323923896738, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4484458361146166461, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 4489644750411160650, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -1025,10 +1282,18 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 4508048978904919652, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 4535334555602298065, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 4814295100514271622, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 4915514909700220634, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1037,10 +1302,18 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 5096558893585056743, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 5097118676045592876, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 5234693700391338862, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 5248991932466795226, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1053,10 +1326,22 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 5398914292310387298, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5410071128119961913, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 5418949153799941734, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 5475693096686557667, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 5494575058014929512, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1069,10 +1354,18 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 5536391293703826274, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 5651028825388800795, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 5711488246007340158, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 5742617337102478177, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1085,6 +1378,10 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 6287054627008618746, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 6289753226296874717, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1093,10 +1390,22 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 6450678912859178352, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6513144472504627955, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 6521215566766927821, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 6531270528053873196, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 6558128443582924343, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1105,6 +1414,10 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 6700998538331862211, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 6702086550576006396, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1113,6 +1426,10 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 6883573515946291119, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 6901692603022289004, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1121,10 +1438,22 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 6940496487790406470, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6968640303074602632, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 7000053470770199572, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 7024851961462268500, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 7075564568660070340, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1137,6 +1466,14 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 7322960490698505989, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7341138557672248622, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 7357603057892312431, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1153,10 +1490,42 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 7631668392944928949, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7724749184301652320, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7783648209505310500, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7930321348898245079, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 7970154671117614472, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 8020120119756853926, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8097301679784419722, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8111325926846093037, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8126335224914949053, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 8148775070076480097, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1173,10 +1542,26 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 8336008713104941434, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8418869895069387340, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 8496836489073934903, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 8560764150593605935, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8581423934713476508, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 8584706570539137507, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: @@ -1185,18 +1570,58 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 8661299071638339734, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8700397812547605586, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 8702330332671840275, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 8769432758320132598, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8817519734761789609, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8858383148609764790, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8932736288112713530, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 8948269741742200348, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 8952351882038572560, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 9040162426624780007, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 9063949990138029930, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} - target: {fileID: 9094092499901225114, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 9208735443867522826, guid: ea4aa1b96b53e65448173fee944b8f71, type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] @@ -1280,3 +1705,4 @@ SceneRoots: - {fileID: 7421986340455189703} - {fileID: 512490667} - {fileID: 2085940120} + - {fileID: 2473429094783586364} diff --git a/box1/Assets/Script/GameManager.cs b/box1/Assets/Script/GameManager.cs index 6dc48ed7..6a549ce0 100644 --- a/box1/Assets/Script/GameManager.cs +++ b/box1/Assets/Script/GameManager.cs @@ -82,6 +82,7 @@ public class GameManager : MonoBehaviour _data.InitData(); firstPlay = true; TT.ReportAnalytics("10101"); + DotData.ins.SendEvent("10101",""); MainPanel.ins.ClosePanelEvent(); }); } diff --git a/box1/Assets/Script/SDK.meta b/box1/Assets/Script/SDK.meta new file mode 100644 index 00000000..efddd3b9 --- /dev/null +++ b/box1/Assets/Script/SDK.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c2e3c477de06cc840a409e73b044918e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/SDK/DotData.cs b/box1/Assets/Script/SDK/DotData.cs new file mode 100644 index 00000000..3599907f --- /dev/null +++ b/box1/Assets/Script/SDK/DotData.cs @@ -0,0 +1,53 @@ +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() + { + userId = userId, + 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/box1/Assets/Script/SDK/DotData.cs.meta b/box1/Assets/Script/SDK/DotData.cs.meta new file mode 100644 index 00000000..abf37676 --- /dev/null +++ b/box1/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/box1/Assets/Script/UI/EventSystem.cs b/box1/Assets/Script/UI/EventSystem.cs index 13ad570e..2e52dea3 100644 --- a/box1/Assets/Script/UI/EventSystem.cs +++ b/box1/Assets/Script/UI/EventSystem.cs @@ -14,6 +14,7 @@ public class EventSystem : MonoBehaviour case 9: lenght = maxLenght; TT.ReportAnalytics("10129"); + DotData.ins.SendEvent("10129",""); break; case 1: speed += data.Event1; @@ -21,6 +22,7 @@ public class EventSystem : MonoBehaviour case 2: moveTime += data.Event1; TT.ReportAnalytics("10130"); + DotData.ins.SendEvent("10130",""); break; case 3: pointsRatio += data.Event1; diff --git a/box1/Assets/Script/UI/LevelPanel.cs b/box1/Assets/Script/UI/LevelPanel.cs index d889ee86..d2fe77c4 100644 --- a/box1/Assets/Script/UI/LevelPanel.cs +++ b/box1/Assets/Script/UI/LevelPanel.cs @@ -203,17 +203,21 @@ public class LevelPanel : MonoBehaviour { bginner.gameObject.SetActive(false); } - TT.GetUserInfo( - (ref TTUserInfo scUserInfo) => + TT.Login((code, anonymousCode, isLogin) => { - name.text = scUserInfo.nickName; - SetAsyncImage(scUserInfo.avatarUrl, playerImage); - BoxDebug.Log($"TestGetUserInfo info: {scUserInfo.ToString()}"); + TT.GetUserInfo( + (ref TTUserInfo scUserInfo) => + { + name.text = scUserInfo.nickName; + SetAsyncImage(scUserInfo.avatarUrl, playerImage); + BoxDebug.Log($"TestGetUserInfo info: {scUserInfo.ToString()}"); + }, + (errMsg) => + { + BoxDebug.Log($"TestGetUserInfo fail: {errMsg}"); + }); }, - (errMsg) => - { - BoxDebug.Log($"TestGetUserInfo fail: {errMsg}"); - }); + (msg) => { }); } IEnumerator loadWait() @@ -353,14 +357,18 @@ public class LevelPanel : MonoBehaviour { case 110012: TT.ReportAnalytics("10104"); + DotData.ins.SendEvent("10104",""); break; case 110013: TT.ReportAnalytics("10106"); + DotData.ins.SendEvent("10106",""); break; case 110015: TT.ReportAnalytics("10108"); + DotData.ins.SendEvent("10108",""); break; } + DotData.ins.SendEvent("OpenLevel",levelID); GameManager.ins.ResetLevel(levelID, () => { aniIndex++; @@ -371,6 +379,7 @@ public class LevelPanel : MonoBehaviour wait.SetActive(false); } }); + bginner.gameObject.SetActive(false); } } // Start is called before the first frame update diff --git a/box1/Assets/Script/UI/LosePanel.cs b/box1/Assets/Script/UI/LosePanel.cs index b1ed79b9..08d49d09 100644 --- a/box1/Assets/Script/UI/LosePanel.cs +++ b/box1/Assets/Script/UI/LosePanel.cs @@ -61,23 +61,28 @@ public class LosePanel : MonoBehaviour { case 1: TT.ReportAnalytics("10131"); + DotData.ins.SendEvent("10131",""); break; case 2: TT.ReportAnalytics("10132"); + DotData.ins.SendEvent("10132",""); break; case 3: TT.ReportAnalytics("10133"); + DotData.ins.SendEvent("10133",""); break; case 5: TT.ReportAnalytics("10134"); + DotData.ins.SendEvent("10134",""); break; case 10: TT.ReportAnalytics("10135"); + DotData.ins.SendEvent("10135",""); break; } MainPanel.ins.AddTourPanel(10); gameObject.SetActive(false); - }); + },1); } void CloseEvent() diff --git a/box1/Assets/Script/UI/MainPanel.cs b/box1/Assets/Script/UI/MainPanel.cs index 33fd9f14..5b6a2a10 100644 --- a/box1/Assets/Script/UI/MainPanel.cs +++ b/box1/Assets/Script/UI/MainPanel.cs @@ -26,10 +26,6 @@ public class MainPanel : MonoBehaviour private void Awake() { ins = this; - winrestButton.onClick.AddListener(StartPanelEvent); - wincloseButton.onClick.AddListener(ClosePanelEvent); - loseRestButton.onClick.AddListener(StartPanelEvent); - loseCloseButton.onClick.AddListener(ClosePanelEvent); } /// /// 关闭页面方法 diff --git a/box1/Assets/Script/UI/PackPanel.cs b/box1/Assets/Script/UI/PackPanel.cs index 6831a292..9dba7f9f 100644 --- a/box1/Assets/Script/UI/PackPanel.cs +++ b/box1/Assets/Script/UI/PackPanel.cs @@ -83,6 +83,7 @@ public class PackPanel : MonoBehaviour { beginner.gameObject.SetActive(false); TT.ReportAnalytics("10102"); + DotData.ins.SendEvent("10102",""); } private void SetSettingsObj() @@ -105,9 +106,11 @@ public class PackPanel : MonoBehaviour { case 1: TT.ReportAnalytics("10117"); + DotData.ins.SendEvent("10117",""); break; case 2: TT.ReportAnalytics("10118"); + DotData.ins.SendEvent("10118",""); break; } DataManager.STTAnalytics("box",DataManager.GTTAnalytics("box")+1); @@ -115,18 +118,23 @@ public class PackPanel : MonoBehaviour { case 1: TT.ReportAnalytics("10112"); + DotData.ins.SendEvent("10112",""); break; case 2: TT.ReportAnalytics("10113"); + DotData.ins.SendEvent("10113",""); break; case 3: TT.ReportAnalytics("10114"); + DotData.ins.SendEvent("10114",""); break; case 5: TT.ReportAnalytics("10115"); + DotData.ins.SendEvent("10115",""); break; case 10: TT.ReportAnalytics("10116"); + DotData.ins.SendEvent("10116",""); break; } GameManager.ins.index++; @@ -213,18 +221,22 @@ public class PackPanel : MonoBehaviour if (MapManager.ins._unLockIndex==1) { TT.ReportAnalytics("10125"); + DotData.ins.SendEvent("10125",""); } if (MapManager.ins._unLockIndex==2) { TT.ReportAnalytics("10126"); + DotData.ins.SendEvent("10126",""); } if (MapManager.ins._unLockIndex==3) { TT.ReportAnalytics("10127"); + DotData.ins.SendEvent("10127",""); } if (MapManager.ins._unLockIndex==5) { TT.ReportAnalytics("10128"); + DotData.ins.SendEvent("10128",""); } DataManager.STTAnalytics("grid", DataManager.GTTAnalytics("grid")+1); @@ -232,21 +244,27 @@ public class PackPanel : MonoBehaviour { case 1: TT.ReportAnalytics("10119"); + DotData.ins.SendEvent("10119",""); break; case 2: TT.ReportAnalytics("10120"); + DotData.ins.SendEvent("10120",""); break; case 3: TT.ReportAnalytics("10121"); + DotData.ins.SendEvent("10121",""); break; case 5: TT.ReportAnalytics("10122"); + DotData.ins.SendEvent("10122",""); break; case 10: TT.ReportAnalytics("10123"); + DotData.ins.SendEvent("10123",""); break; case 20: TT.ReportAnalytics("10124"); + DotData.ins.SendEvent("10124",""); break; } MapManager.ins.RandomUnlock(); diff --git a/box1/Assets/Script/UI/WinPanel.cs b/box1/Assets/Script/UI/WinPanel.cs index 856bd861..a3b5d392 100644 --- a/box1/Assets/Script/UI/WinPanel.cs +++ b/box1/Assets/Script/UI/WinPanel.cs @@ -30,21 +30,27 @@ public class WinPanel : MonoBehaviour { case 110011: TT.ReportAnalytics("10103"); + DotData.ins.SendEvent("10103",""); break; case 110012: TT.ReportAnalytics("10105"); + DotData.ins.SendEvent("10105",""); break; case 110013: TT.ReportAnalytics("10107"); + DotData.ins.SendEvent("10107",""); break; case 110015: TT.ReportAnalytics("10109"); + DotData.ins.SendEvent("10109",""); break; case 110025: TT.ReportAnalytics("10110"); + DotData.ins.SendEvent("10110",""); break; case 110045: TT.ReportAnalytics("10111"); + DotData.ins.SendEvent("10111",""); break; } var data=JsonTab.Instance.tables.Level.Get(id); @@ -93,18 +99,23 @@ public class WinPanel : MonoBehaviour { case 1: TT.ReportAnalytics("10136"); + DotData.ins.SendEvent("10136",""); break; case 2: TT.ReportAnalytics("10137"); + DotData.ins.SendEvent("10137",""); break; case 3: TT.ReportAnalytics("10138"); + DotData.ins.SendEvent("10138",""); break; case 5: TT.ReportAnalytics("10139"); + DotData.ins.SendEvent("10139",""); break; case 10: TT.ReportAnalytics("10140"); + DotData.ins.SendEvent("10140",""); break; } MainPanel.ins.ClosePanelEvent(); diff --git a/box1/Assets/StreamingAssets.meta b/box1/Assets/StreamingAssets.meta new file mode 100644 index 00000000..17d641f0 --- /dev/null +++ b/box1/Assets/StreamingAssets.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 333d54c494fe8c948b7f54b7125794b1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/StreamingAssets/__cp_js_files.meta b/box1/Assets/StreamingAssets/__cp_js_files.meta new file mode 100644 index 00000000..44dac42b --- /dev/null +++ b/box1/Assets/StreamingAssets/__cp_js_files.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f41a39c6310b38d49904d4d81d673638 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js b/box1/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js new file mode 100644 index 00000000..c7c7710e --- /dev/null +++ b/box1/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/box1/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js.meta b/box1/Assets/StreamingAssets/__cp_js_files/minitt-cn-sesdk-umd.js.meta new file mode 100644 index 00000000..e59259a4 --- /dev/null +++ b/box1/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/box1/ProjectSettings/ProjectSettings.asset b/box1/ProjectSettings/ProjectSettings.asset index 0d13189a..bd5614bd 100644 --- a/box1/ProjectSettings/ProjectSettings.asset +++ b/box1/ProjectSettings/ProjectSettings.asset @@ -760,7 +760,8 @@ PlayerSettings: webGLMemoryGeometricGrowthStep: 0.2 webGLMemoryGeometricGrowthCap: 96 webGLPowerPreference: 2 - scriptingDefineSymbols: {} + scriptingDefineSymbols: + WebGL: SE_DG additionalCompilerArguments: {} platformArchitecture: {} scriptingBackend: diff --git a/box1/UserSettings/Layouts/default-2022.dwlt b/box1/UserSettings/Layouts/default-2022.dwlt index 1fc9981e..c24098c7 100644 --- a/box1/UserSettings/Layouts/default-2022.dwlt +++ b/box1/UserSettings/Layouts/default-2022.dwlt @@ -1,6 +1,30 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_PixelRect: + serializedVersion: 2 + x: 1940 + y: 215 + width: 910 + height: 721 + m_ShowMode: 0 + m_Title: BuildTool + m_RootView: {fileID: 5} + m_MinSize: {x: 810, y: 721} + m_MaxSize: {x: 4000, y: 4021} + m_Maximized: 0 +--- !u!114 &2 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -20,11 +44,11 @@ MonoBehaviour: height: 1032 m_ShowMode: 0 m_Title: Game - m_RootView: {fileID: 4} + m_RootView: {fileID: 7} m_MinSize: {x: 100, y: 121} m_MaxSize: {x: 4000, y: 4021} m_Maximized: 1 ---- !u!114 &2 +--- !u!114 &3 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -43,12 +67,63 @@ MonoBehaviour: width: 1904 height: 973 m_ShowMode: 4 - m_Title: Inspector - m_RootView: {fileID: 9} + m_Title: Console + m_RootView: {fileID: 12} m_MinSize: {x: 875, y: 300} m_MaxSize: {x: 10000, y: 10000} m_Maximized: 0 ---- !u!114 &3 +--- !u!114 &4 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: a6 + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 910 + height: 721 + m_MinSize: {x: 810, y: 721} + m_MaxSize: {x: 4000, y: 4021} + m_ActualView: {fileID: 18} + m_Panes: + - {fileID: 18} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &5 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 4} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 910 + height: 721 + m_MinSize: {x: 810, y: 721} + m_MaxSize: {x: 4000, y: 4021} + vertical: 0 + controlID: 2611 + draggingID: 0 +--- !u!114 &6 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -69,12 +144,12 @@ MonoBehaviour: height: 1032 m_MinSize: {x: 100, y: 121} m_MaxSize: {x: 4000, y: 4021} - m_ActualView: {fileID: 15} + m_ActualView: {fileID: 19} m_Panes: - - {fileID: 15} + - {fileID: 19} m_Selected: 0 m_LastSelected: 0 ---- !u!114 &4 +--- !u!114 &7 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -87,7 +162,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Children: - - {fileID: 3} + - {fileID: 6} m_Position: serializedVersion: 2 x: 0 @@ -99,7 +174,7 @@ MonoBehaviour: vertical: 0 controlID: 14 draggingID: 0 ---- !u!114 &5 +--- !u!114 &8 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -112,8 +187,8 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Children: - - {fileID: 12} - - {fileID: 6} + - {fileID: 15} + - {fileID: 9} m_Position: serializedVersion: 2 x: 0 @@ -123,9 +198,9 @@ MonoBehaviour: m_MinSize: {x: 300, y: 100} m_MaxSize: {x: 24288, y: 16192} vertical: 0 - controlID: 118 + controlID: 145 draggingID: 0 ---- !u!114 &6 +--- !u!114 &9 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -144,14 +219,14 @@ MonoBehaviour: y: 0 width: 368 height: 923 - m_MinSize: {x: 276, y: 71} - m_MaxSize: {x: 4001, y: 4021} - m_ActualView: {fileID: 18} + m_MinSize: {x: 275, y: 50} + m_MaxSize: {x: 4000, y: 4000} + m_ActualView: {fileID: 22} m_Panes: - - {fileID: 18} + - {fileID: 22} m_Selected: 0 m_LastSelected: 0 ---- !u!114 &7 +--- !u!114 &10 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -169,15 +244,15 @@ MonoBehaviour: x: 0 y: 0 width: 361 - height: 493 - m_MinSize: {x: 201, y: 221} - m_MaxSize: {x: 4001, y: 4021} - m_ActualView: {fileID: 19} + height: 229 + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_ActualView: {fileID: 23} m_Panes: - - {fileID: 19} + - {fileID: 23} m_Selected: 0 m_LastSelected: 0 ---- !u!114 &8 +--- !u!114 &11 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -187,24 +262,24 @@ 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: 493 + y: 229 width: 1536 - height: 430 - m_MinSize: {x: 231, y: 271} - m_MaxSize: {x: 10001, y: 10021} - m_ActualView: {fileID: 17} + height: 694 + m_MinSize: {x: 101, y: 121} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 25} m_Panes: - - {fileID: 17} - {fileID: 21} - m_Selected: 0 - m_LastSelected: 1 ---- !u!114 &9 + - {fileID: 25} + m_Selected: 1 + m_LastSelected: 0 +--- !u!114 &12 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -217,9 +292,9 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Children: - - {fileID: 10} - - {fileID: 5} - - {fileID: 11} + - {fileID: 13} + - {fileID: 8} + - {fileID: 14} m_Position: serializedVersion: 2 x: 0 @@ -232,7 +307,7 @@ MonoBehaviour: m_TopViewHeight: 30 m_UseBottomView: 1 m_BottomViewHeight: 20 ---- !u!114 &10 +--- !u!114 &13 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -254,7 +329,7 @@ MonoBehaviour: m_MinSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0} m_LastLoadedLayoutName: ---- !u!114 &11 +--- !u!114 &14 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -275,7 +350,7 @@ MonoBehaviour: height: 20 m_MinSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0} ---- !u!114 &12 +--- !u!114 &15 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -288,8 +363,8 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Children: - - {fileID: 13} - - {fileID: 8} + - {fileID: 16} + - {fileID: 11} m_Position: serializedVersion: 2 x: 0 @@ -299,9 +374,9 @@ MonoBehaviour: m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 16192} vertical: 1 - controlID: 119 + controlID: 86 draggingID: 0 ---- !u!114 &13 +--- !u!114 &16 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -314,20 +389,20 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Children: - - {fileID: 7} - - {fileID: 14} + - {fileID: 10} + - {fileID: 17} m_Position: serializedVersion: 2 x: 0 y: 0 width: 1536 - height: 493 + height: 229 m_MinSize: {x: 200, y: 50} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 65 + controlID: 48 draggingID: 0 ---- !u!114 &14 +--- !u!114 &17 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -345,16 +420,50 @@ MonoBehaviour: x: 361 y: 0 width: 1175 - height: 493 - m_MinSize: {x: 202, y: 221} - m_MaxSize: {x: 4002, y: 4021} - m_ActualView: {fileID: 20} + height: 229 + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_ActualView: {fileID: 24} m_Panes: + - {fileID: 24} - {fileID: 20} - - {fileID: 16} m_Selected: 0 m_LastSelected: 1 ---- !u!114 &15 +--- !u!114 &18 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1513232309, guid: 76741459812cc496eb3634fdc0e9cc80, type: 3} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 810, y: 700} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: BuildTool + m_Image: {fileID: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 1940 + y: 215 + width: 910 + height: 700 + m_SerializedDataModeController: + m_DataMode: 0 + m_PreferredDataMode: 0 + m_SupportedDataModes: + isAutomatic: 1 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_OverlaysVisible: 1 +--- !u!114 &19 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -419,7 +528,7 @@ MonoBehaviour: m_VAllowExceedBaseRangeMax: 1 m_ScaleWithWindow: 0 m_HSlider: 0 - m_VSlider: 0 + m_VSlider: 1 m_IgnoreScrollWheelUntilClicked: 0 m_EnableMouseInput: 1 m_EnableSliderZoomHorizontal: 0 @@ -432,18 +541,18 @@ MonoBehaviour: y: 21 width: 1920 height: 990 - m_Scale: {x: 0.38671875, y: 0.38671875} - m_Translation: {x: 960, y: 495} + m_Scale: {x: 0.38875362, y: 0.38875362} + m_Translation: {x: 960, y: 497.60464} m_MarginLeft: 0 m_MarginRight: 0 m_MarginTop: 0 m_MarginBottom: 0 m_LastShownAreaInsideMargins: serializedVersion: 2 - x: -2482.4243 + x: -2469.4304 y: -1280 - width: 4964.8486 - height: 2560 + width: 4938.861 + height: 2546.6 m_MinimalGUI: 1 m_defaultScale: 0.38671875 m_LastWindowPixelSize: {x: 1920, y: 1011} @@ -452,7 +561,7 @@ MonoBehaviour: m_LowResolutionForAspectRatios: 01000100000000000000 m_XRRenderMode: 0 m_RenderTexture: {fileID: 0} ---- !u!114 &16 +--- !u!114 &20 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -513,7 +622,7 @@ MonoBehaviour: m_IsRenamingFilename: 0 m_ClientGUIView: {fileID: 0} m_SearchString: ---- !u!114 &17 +--- !u!114 &21 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -534,9 +643,9 @@ MonoBehaviour: m_Pos: serializedVersion: 2 x: 8 - y: 574 + y: 310 width: 1535 - height: 409 + height: 673 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -558,24 +667,24 @@ MonoBehaviour: m_SkipHidden: 0 m_SearchArea: 1 m_Folders: - - Assets/Script/Item + - Assets/Script/UI m_Globs: [] m_OriginalText: m_ImportLogFlags: 0 m_FilterByTypeIntersection: 0 m_ViewMode: 1 - m_StartGridSize: 49 + m_StartGridSize: 96 m_LastFolders: - - Assets/Script/Item - m_LastFoldersGridSize: 49 + - Assets/Script/UI + m_LastFoldersGridSize: 96 m_LastProjectPath: E:\UnityProject\Game\box1 m_LockTracker: m_IsLocked: 0 m_FolderTreeState: - scrollPos: {x: 0, y: 75} - m_SelectedIDs: b2820000 - m_LastClickedID: 33458 - m_ExpandedIDs: 00000000aa7f0000ac7f0000b2810000be81000000ca9a3bffffff7f + scrollPos: {x: 0, y: 56} + m_SelectedIDs: 0c820000 + m_LastClickedID: 33292 + m_ExpandedIDs: 00000000c07f0000c27f0000d48100003c9900008899000000ca9a3bffffff7f m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -591,7 +700,7 @@ MonoBehaviour: m_IsRenaming: 0 m_OriginalEventType: 11 m_IsRenamingFilename: 1 - m_ClientGUIView: {fileID: 8} + m_ClientGUIView: {fileID: 11} m_SearchString: m_CreateAssetUtility: m_EndAction: {fileID: 0} @@ -603,7 +712,7 @@ MonoBehaviour: scrollPos: {x: 0, y: 0} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 00000000aa7f0000ac7f0000 + m_ExpandedIDs: 00000000c07f0000c27f0000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -631,7 +740,7 @@ MonoBehaviour: m_SelectedInstanceIDs: m_LastClickedInstanceID: 0 m_HadKeyboardFocusLastEvent: 1 - m_ExpandedInstanceIDs: c6230000448600003c0001002e000100be740000c4740000c2740000b4740000b2740000ba740000bc740000b0740000c0740000b6740000b87400009c7400008c740000867400009274000098740000967400009a74000090740000a07400008e740000847400009e740000ce7700002ea800005ea80000006700001a7b0000187b0000107a0000c27900001ceb0000ea7a0000e07a0000d4c70000967e0000767f0000d67f0000c07d0000b4630000547d000000000000e87d00003a7d0000 + m_ExpandedInstanceIDs: c6230000448600003c0001002e000100be740000c4740000c2740000b4740000b2740000ba740000bc740000b0740000c0740000b6740000b87400009c7400008c740000867400009274000098740000967400009a74000090740000a07400008e740000847400009e740000ce7700002ea800005ea80000006700001a7b0000187b0000107a0000c27900001ceb0000ea7a0000e07a0000d4c70000967e0000767f0000d67f0000c07d0000b4630000547d0000e87d00003a7d000000000000a4b5000024b700008e7d000084630100 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -647,7 +756,7 @@ MonoBehaviour: m_IsRenaming: 0 m_OriginalEventType: 11 m_IsRenamingFilename: 1 - m_ClientGUIView: {fileID: 8} + m_ClientGUIView: {fileID: 11} m_CreateAssetUtility: m_EndAction: {fileID: 0} m_InstanceID: 0 @@ -656,10 +765,10 @@ MonoBehaviour: m_ResourceFile: m_NewAssetIndexInList: -1 m_ScrollPosition: {x: 0, y: 0} - m_GridSize: 49 + m_GridSize: 96 m_SkipHiddenPackages: 0 m_DirectoriesAreaWidth: 207 ---- !u!114 &18 +--- !u!114 &22 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -700,13 +809,13 @@ MonoBehaviour: m_ControlHash: -371814159 m_PrefName: Preview_InspectorPreview m_LastInspectedObjectInstanceID: -1 - m_LastVerticalScrollValue: 0 + m_LastVerticalScrollValue: 162 m_GlobalObjectId: m_InspectorMode: 0 m_LockTracker: m_IsLocked: 0 m_PreviewWindow: {fileID: 0} ---- !u!114 &19 +--- !u!114 &23 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -729,7 +838,7 @@ MonoBehaviour: x: 8 y: 81 width: 360 - height: 472 + height: 208 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -743,9 +852,9 @@ MonoBehaviour: m_SceneHierarchy: m_TreeViewState: scrollPos: {x: 0, y: 0} - m_SelectedIDs: d27d0000 + m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 16fbffff + m_ExpandedIDs: e875ffff3276ffff7891ffff46a5ffff90a5ffffd0c0ffff16fbffff7abe0000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -761,7 +870,7 @@ MonoBehaviour: m_IsRenaming: 0 m_OriginalEventType: 11 m_IsRenamingFilename: 0 - m_ClientGUIView: {fileID: 7} + m_ClientGUIView: {fileID: 10} m_SearchString: m_ExpandedScenes: [] m_CurrenRootInstanceID: 0 @@ -769,7 +878,7 @@ MonoBehaviour: m_IsLocked: 0 m_CurrentSortingName: TransformSorting m_WindowGUID: 4c969a2b90040154d917609493e03593 ---- !u!114 &20 +--- !u!114 &24 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -792,7 +901,7 @@ MonoBehaviour: x: 369 y: 81 width: 1173 - height: 472 + height: 208 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 @@ -1164,9 +1273,9 @@ MonoBehaviour: m_PlayAudio: 0 m_AudioPlay: 0 m_Position: - m_Target: {x: 956.00287, y: 1784.5044, z: -12.548124} + m_Target: {x: 752.8704, y: 690.9177, z: 12.530368} speed: 2 - m_Value: {x: 956.00287, y: 1784.5044, z: -12.548124} + m_Value: {x: 752.8704, y: 690.9177, z: 12.530368} m_RenderMode: 0 m_CameraMode: drawMode: 0 @@ -1216,9 +1325,9 @@ MonoBehaviour: speed: 2 m_Value: {x: 0, y: 0, z: 0, w: 1} m_Size: - m_Target: 1276.7363 + m_Target: 215.56929 speed: 2 - m_Value: 1276.7363 + m_Value: 215.56929 m_Ortho: m_Target: 1 speed: 2 @@ -1243,7 +1352,7 @@ MonoBehaviour: m_SceneVisActive: 1 m_LastLockedObject: {fileID: 0} m_ViewIsLockedToObject: 0 ---- !u!114 &21 +--- !u!114 &25 MonoBehaviour: m_ObjectHideFlags: 52 m_CorrespondingSourceObject: {fileID: 0} @@ -1264,9 +1373,9 @@ MonoBehaviour: m_Pos: serializedVersion: 2 x: 8 - y: 574 + y: 310 width: 1535 - height: 409 + height: 673 m_SerializedDataModeController: m_DataMode: 0 m_PreferredDataMode: 0 diff --git a/box1/project.config.json b/box1/project.config.json index 7bd8eded..c7760c71 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-20241217_181359.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_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