Skip to content

Commit

Permalink
Change Game contnt
Browse files Browse the repository at this point in the history
  • Loading branch information
TranNhi27 committed May 17, 2024
1 parent 4137f3b commit 9b8e420
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 3 deletions.
Binary file modified Build/BuildGame.data.unityweb
Binary file not shown.
Binary file modified Build/BuildGame.framework.js.unityweb
Binary file not shown.
Binary file modified Build/BuildGame.wasm.unityweb
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion StreamingAssets/aa/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion StreamingAssets/aa/settings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"m_buildTarget":"WebGL","m_SettingsHash":"fb33d81f78e4e02c3f87e7f39ccf3b92","m_CatalogLocations":[{"m_Keys":["AddressablesMainContentCatalog"],"m_InternalId":"{UnityEngine.AddressableAssets.Addressables.RuntimePath}/catalog.json","m_Provider":"UnityEngine.AddressableAssets.ResourceProviders.ContentCatalogProvider","m_Dependencies":[],"m_ResourceType":{"m_AssemblyName":"Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null","m_ClassName":"UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData"},"SerializedData":[7,76,85,110,105,116,121,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,114,44,32,86,101,114,115,105,111,110,61,48,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,110,117,108,108,75,85,110,105,116,121,69,110,103,105,110,101,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,109,101,110,116,46,82,101,115,111,117,114,99,101,80,114,111,118,105,100,101,114,115,46,80,114,111,118,105,100,101,114,76,111,97,100,82,101,113,117,101,115,116,79,112,116,105,111,110,115,50,0,0,0,123,0,34,0,109,0,95,0,73,0,103,0,110,0,111,0,114,0,101,0,70,0,97,0,105,0,108,0,117,0,114,0,101,0,115,0,34,0,58,0,116,0,114,0,117,0,101,0,125,0]}],"m_ProfileEvents":false,"m_LogResourceManagerExceptions":true,"m_ExtraInitializationData":[],"m_DisableCatalogUpdateOnStart":false,"m_IsLocalCatalogInBundle":false,"m_CertificateHandlerType":{"m_AssemblyName":"","m_ClassName":""},"m_AddressablesVersion":"1.21.20","m_maxConcurrentWebRequests":3,"m_CatalogRequestsTimeout":0}
{"m_buildTarget":"WebGL","m_SettingsHash":"06209645b9c8babf0b9006ce8421b968","m_CatalogLocations":[{"m_Keys":["AddressablesMainContentCatalog"],"m_InternalId":"{UnityEngine.AddressableAssets.Addressables.RuntimePath}/catalog.json","m_Provider":"UnityEngine.AddressableAssets.ResourceProviders.ContentCatalogProvider","m_Dependencies":[],"m_ResourceType":{"m_AssemblyName":"Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null","m_ClassName":"UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData"},"SerializedData":[7,76,85,110,105,116,121,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,114,44,32,86,101,114,115,105,111,110,61,48,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,110,117,108,108,75,85,110,105,116,121,69,110,103,105,110,101,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,109,101,110,116,46,82,101,115,111,117,114,99,101,80,114,111,118,105,100,101,114,115,46,80,114,111,118,105,100,101,114,76,111,97,100,82,101,113,117,101,115,116,79,112,116,105,111,110,115,50,0,0,0,123,0,34,0,109,0,95,0,73,0,103,0,110,0,111,0,114,0,101,0,70,0,97,0,105,0,108,0,117,0,114,0,101,0,115,0,34,0,58,0,116,0,114,0,117,0,101,0,125,0]}],"m_ProfileEvents":false,"m_LogResourceManagerExceptions":true,"m_ExtraInitializationData":[],"m_DisableCatalogUpdateOnStart":false,"m_IsLocalCatalogInBundle":false,"m_CertificateHandlerType":{"m_AssemblyName":"","m_ClassName":""},"m_AddressablesVersion":"1.21.20","m_maxConcurrentWebRequests":3,"m_CatalogRequestsTimeout":0}
18 changes: 17 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,20 @@
</script>
</body>

</html>
</html>

<script>
Telegram.WebApp.onEvent('popupClosed', function(eventData) {
// eventData.button_id will contain the id of the button that was pressed to close the popup.
// If no button was pressed and the popup was closed another way, button_id will be null.

if (eventData.button_id) {
console.log('Popup closed with button id:', eventData.button_id);
// Handle the event when a button with a specific id closes the popup
} else {
console.log('Popup closed without button press');
// Handle the event when the popup is closed without pressing any buttons
}
});

</script>

0 comments on commit 9b8e420

Please sign in to comment.