app.hypergames.hypersdk 1.4.7 → 1.4.9
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 +14 -0
- package/Runtime/Internal/Managers/BackendManager.cs +1 -0
- package/Runtime/Internal/Managers/GameManager.cs +8 -3
- package/Runtime/Internal/UI/Modals/GamePausedModal.cs +4 -11
- package/Runtime/Internal/UI/Modals/TutorialButton.cs +3 -1
- package/Runtime/Resources/UIPrefabs/GamePausedModal_Battle.prefab +1 -1
- package/Runtime/Resources/UIPrefabs/GamePausedModal_Practice.prefab +8 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.4.9](https://github.com/mvmhyper/hyper-sdk/compare/v1.4.8...v1.4.9) (2025-12-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* updated modal management to prevent unintended UI behavior ([5cc51d7](https://github.com/mvmhyper/hyper-sdk/commit/5cc51d74134e424ec8a131b0c0ba4b39efc7c5f0))
|
|
7
|
+
|
|
8
|
+
## [1.4.8](https://github.com/mvmhyper/hyper-sdk/compare/v1.4.7...v1.4.8) (2025-12-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update pause UI modal exit and tutorial logic ([0f303b3](https://github.com/mvmhyper/hyper-sdk/commit/0f303b324f0495b76665445f67ed10f4bd9171a4))
|
|
14
|
+
|
|
1
15
|
## [1.4.7](https://github.com/mvmhyper/hyper-sdk/compare/v1.4.6...v1.4.7) (2025-12-16)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -872,6 +872,7 @@ namespace Hyper.Internal.Managers
|
|
|
872
872
|
case "no_tutorial":
|
|
873
873
|
_isFetchingTutorial = false;
|
|
874
874
|
tutorialExistsButFailed = false;
|
|
875
|
+
tutorialFetchSuccess = false;
|
|
875
876
|
_onTutorialFailure?.Invoke(TutorialFetchStatus.NoTutorialExists);
|
|
876
877
|
_eventManager?.InvokeTutorialNotExistsEvent();
|
|
877
878
|
break;
|
|
@@ -738,12 +738,17 @@ namespace Hyper.Internal.Managers
|
|
|
738
738
|
if ((!string.IsNullOrEmpty(menuSceneName) && scene.name.Equals(menuSceneName, StringComparison.OrdinalIgnoreCase)) ||
|
|
739
739
|
(!string.IsNullOrEmpty(transitionSceneName) && scene.name.Equals(transitionSceneName, StringComparison.OrdinalIgnoreCase)))
|
|
740
740
|
{
|
|
741
|
+
IsInGameScene = false;
|
|
742
|
+
_hasGameStarted = false;
|
|
743
|
+
_hasGameEnded = false;
|
|
744
|
+
_isPaused = false;
|
|
745
|
+
_isFrozenBeforePause = false;
|
|
741
746
|
HideTopBarElements();
|
|
742
747
|
return;
|
|
743
748
|
}
|
|
744
749
|
|
|
745
750
|
ApplySafeArea();
|
|
746
|
-
|
|
751
|
+
PrepareGameState();
|
|
747
752
|
InitializeSceneUI();
|
|
748
753
|
|
|
749
754
|
#if UNITY_WEBGL && !UNITY_EDITOR
|
|
@@ -753,7 +758,7 @@ namespace Hyper.Internal.Managers
|
|
|
753
758
|
StartCoroutine(BootstrapAndStart());
|
|
754
759
|
}
|
|
755
760
|
|
|
756
|
-
private void
|
|
761
|
+
private void PrepareGameState()
|
|
757
762
|
{
|
|
758
763
|
HidePauseModals();
|
|
759
764
|
HideGameOverModal();
|
|
@@ -1148,7 +1153,7 @@ namespace Hyper.Internal.Managers
|
|
|
1148
1153
|
{
|
|
1149
1154
|
_exitGameMenuModal.SetActive(false);
|
|
1150
1155
|
}
|
|
1151
|
-
|
|
1156
|
+
|
|
1152
1157
|
SetBlockerActive(false);
|
|
1153
1158
|
}
|
|
1154
1159
|
|
|
@@ -51,7 +51,7 @@ namespace Hyper.Internal
|
|
|
51
51
|
if (restartButton != null) restartButton.SetActive(!HyperRuntime.GameContent.IsPracticeMenu);
|
|
52
52
|
|
|
53
53
|
if (_gameManager.IsPracticeMode && footerHLG != null)
|
|
54
|
-
footerHLG.spacing = HyperRuntime.GameContent.IsPracticeMenu ?
|
|
54
|
+
footerHLG.spacing = HyperRuntime.GameContent.IsPracticeMenu ? 375 : 158;
|
|
55
55
|
|
|
56
56
|
if (HyperRuntime.BackendManager.tutorialDoesNotExist)
|
|
57
57
|
{
|
|
@@ -59,11 +59,6 @@ namespace Hyper.Internal
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
void Start()
|
|
63
|
-
{
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
62
|
void OnDestroy()
|
|
68
63
|
{
|
|
69
64
|
_eventManager.OnSessionTimeOut -= ShowSessionEndedOnTimer;
|
|
@@ -76,11 +71,11 @@ namespace Hyper.Internal
|
|
|
76
71
|
{
|
|
77
72
|
if (_gameManager.IsPracticeMode)
|
|
78
73
|
{
|
|
79
|
-
footerHLG.spacing =
|
|
74
|
+
footerHLG.spacing = HyperRuntime.GameContent.IsPracticeMenu ? 338 : 138;
|
|
80
75
|
}
|
|
81
76
|
else
|
|
82
77
|
{
|
|
83
|
-
footerHLG.spacing =
|
|
78
|
+
footerHLG.spacing = HyperRuntime.GameContent.IsPracticeMenu ? 375 : 158;
|
|
84
79
|
}
|
|
85
80
|
}
|
|
86
81
|
}
|
|
@@ -100,9 +95,7 @@ namespace Hyper.Internal
|
|
|
100
95
|
}
|
|
101
96
|
|
|
102
97
|
public void ForfeitGame()
|
|
103
|
-
{
|
|
104
|
-
_gameManager.HidePauseModals();
|
|
105
|
-
|
|
98
|
+
{
|
|
106
99
|
if (!IsPVPMode)
|
|
107
100
|
{
|
|
108
101
|
HyperRuntime.GameManager.EndPracticeGame();
|
|
@@ -30,8 +30,10 @@ namespace Hyper.Internal
|
|
|
30
30
|
_eventManager.OnTutorialDoesNotExist += DisableTutorialButton;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
|
|
34
|
+
|
|
33
35
|
// Start is called before the first frame update
|
|
34
|
-
void
|
|
36
|
+
void OnEnable()
|
|
35
37
|
{
|
|
36
38
|
if (HyperRuntime.BackendManager.tutorialDoesNotExist)
|
|
37
39
|
{
|
|
@@ -1526,7 +1526,7 @@ RectTransform:
|
|
|
1526
1526
|
m_AnchorMin: {x: 0, y: 1}
|
|
1527
1527
|
m_AnchorMax: {x: 0, y: 1}
|
|
1528
1528
|
m_AnchoredPosition: {x: 242.0348, y: -33.43245}
|
|
1529
|
-
m_SizeDelta: {x:
|
|
1529
|
+
m_SizeDelta: {x: 342.7, y: 46.0515}
|
|
1530
1530
|
m_Pivot: {x: 0.5, y: 0.5}
|
|
1531
1531
|
--- !u!222 &8480469813127575513
|
|
1532
1532
|
CanvasRenderer:
|
|
@@ -202,7 +202,7 @@ MonoBehaviour:
|
|
|
202
202
|
m_text: Restart
|
|
203
203
|
m_isRightToLeft: 0
|
|
204
204
|
m_fontAsset: {fileID: 11400000, guid: b61cc31493416594290d3793968a7776, type: 2}
|
|
205
|
-
m_sharedMaterial: {fileID:
|
|
205
|
+
m_sharedMaterial: {fileID: -6106472849309118677, guid: b61cc31493416594290d3793968a7776, type: 2}
|
|
206
206
|
m_fontSharedMaterials: []
|
|
207
207
|
m_fontMaterial: {fileID: 0}
|
|
208
208
|
m_fontMaterials: []
|
|
@@ -585,6 +585,10 @@ PrefabInstance:
|
|
|
585
585
|
propertyPath: m_AnchoredPosition.y
|
|
586
586
|
value: -33.43245
|
|
587
587
|
objectReference: {fileID: 0}
|
|
588
|
+
- target: {fileID: 6732311882417467855, guid: a339c1d0d1ed34649bc790f13508f5c1, type: 3}
|
|
589
|
+
propertyPath: m_IsActive
|
|
590
|
+
value: 1
|
|
591
|
+
objectReference: {fileID: 0}
|
|
588
592
|
- target: {fileID: 6891580327800021480, guid: a339c1d0d1ed34649bc790f13508f5c1, type: 3}
|
|
589
593
|
propertyPath: m_Name
|
|
590
594
|
value: Exit
|
|
@@ -691,7 +695,7 @@ PrefabInstance:
|
|
|
691
695
|
objectReference: {fileID: 0}
|
|
692
696
|
- target: {fileID: 7772875344506606024, guid: a339c1d0d1ed34649bc790f13508f5c1, type: 3}
|
|
693
697
|
propertyPath: m_Spacing
|
|
694
|
-
value:
|
|
698
|
+
value: 158
|
|
695
699
|
objectReference: {fileID: 0}
|
|
696
700
|
- target: {fileID: 7772875344506606024, guid: a339c1d0d1ed34649bc790f13508f5c1, type: 3}
|
|
697
701
|
propertyPath: m_ChildAlignment
|
|
@@ -699,7 +703,7 @@ PrefabInstance:
|
|
|
699
703
|
objectReference: {fileID: 0}
|
|
700
704
|
- target: {fileID: 7772875344506606024, guid: a339c1d0d1ed34649bc790f13508f5c1, type: 3}
|
|
701
705
|
propertyPath: m_ChildScaleWidth
|
|
702
|
-
value:
|
|
706
|
+
value: 0
|
|
703
707
|
objectReference: {fileID: 0}
|
|
704
708
|
- target: {fileID: 7772875344506606024, guid: a339c1d0d1ed34649bc790f13508f5c1, type: 3}
|
|
705
709
|
propertyPath: m_ReverseArrangement
|
|
@@ -707,7 +711,7 @@ PrefabInstance:
|
|
|
707
711
|
objectReference: {fileID: 0}
|
|
708
712
|
- target: {fileID: 7772875344506606024, guid: a339c1d0d1ed34649bc790f13508f5c1, type: 3}
|
|
709
713
|
propertyPath: m_ChildForceExpandWidth
|
|
710
|
-
value:
|
|
714
|
+
value: 0
|
|
711
715
|
objectReference: {fileID: 0}
|
|
712
716
|
- target: {fileID: 8265138650407415484, guid: a339c1d0d1ed34649bc790f13508f5c1, type: 3}
|
|
713
717
|
propertyPath: m_AnchorMax.y
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app.hypergames.hypersdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
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",
|