app.hypergames.hypersdk 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.9.1](https://github.com/mvmhyper/hyper-sdk/compare/v1.9.0...v1.9.1) (2026-07-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * prevent orientation modal after game end ([efa33fa](https://github.com/mvmhyper/hyper-sdk/commit/efa33fa073218558dfa3ba3012b19a5151bbcfc9))
7
+
1
8
  # [1.9.0](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.26...v1.9.0) (2026-07-09)
2
9
 
3
10
 
@@ -19,6 +19,11 @@ namespace Hyper.Internal.Managers
19
19
  /// </summary>
20
20
  internal sealed class GameManager : MonoBehaviour
21
21
  {
22
+ #if UNITY_WEBGL
23
+ [DllImport("__Internal")]
24
+ private static extern void MarkGameEndedOnHTML();
25
+ #endif
26
+
22
27
  #region Initialization
23
28
 
24
29
  private DataManager _dataManager;
@@ -119,7 +124,7 @@ namespace Hyper.Internal.Managers
119
124
  {
120
125
  if (IsBattleMode) return;
121
126
 
122
- _hasGameEnded = true;
127
+ SetGameEnded();
123
128
  HyperRuntime.Timer.StopAllTimers();
124
129
 
125
130
  if (!HyperRuntime.GameContent.IsPracticeMenu)
@@ -854,7 +859,7 @@ namespace Hyper.Internal.Managers
854
859
 
855
860
  private void EndGameInternal()
856
861
  {
857
- _hasGameEnded = true;
862
+ SetGameEnded();
858
863
 
859
864
  _eventManager.InvokeGameEndedEvent();
860
865
  HyperRuntime.Timer.StopAllTimers();
@@ -888,6 +893,17 @@ namespace Hyper.Internal.Managers
888
893
 
889
894
  #endregion
890
895
 
896
+ private void SetGameEnded()
897
+ {
898
+ if (_hasGameEnded) return;
899
+
900
+ _hasGameEnded = true;
901
+
902
+ #if UNITY_WEBGL && !UNITY_EDITOR
903
+ MarkGameEndedOnHTML();
904
+ #endif
905
+ }
906
+
891
907
  #region Safe Area Management
892
908
 
893
909
  private void ApplySafeArea()
@@ -1397,7 +1413,7 @@ namespace Hyper.Internal.Managers
1397
1413
 
1398
1414
  private void ShowTimeUpModalInternal()
1399
1415
  {
1400
- _hasGameEnded = true;
1416
+ SetGameEnded();
1401
1417
 
1402
1418
  if (_timeUpModal == null)
1403
1419
  {
@@ -44,6 +44,14 @@ mergeInto(LibraryManager.library, {
44
44
  }
45
45
  },
46
46
 
47
+ MarkGameEndedOnHTML: function () {
48
+ if (window.markGameEnded) {
49
+ window.markGameEnded();
50
+ } else {
51
+ console.error("markGameEnded() not found!");
52
+ }
53
+ },
54
+
47
55
  MarkGameLoadedOnHTML: function () {
48
56
  if (window.markGameLoaded) {
49
57
  window.markGameLoaded();
@@ -184,4 +192,4 @@ mergeInto(LibraryManager.library, {
184
192
  console.error('Unity: iOS inline video fix error', err);
185
193
  }
186
194
  }
187
- });
195
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app.hypergames.hypersdk",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "displayName": "HyperSDK",
5
5
  "description": "Official Unity SDK for Hyper: multiplayer battles, leaderboards, deterministic RNG, session management, tutorials, and WebGL optimizations for production-ready games.",
6
6
  "unity": "6000.0",