app.hypergames.hypersdk 1.8.6 → 1.8.8
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/GameManager.cs +1 -4
- package/Runtime/Internal/UI/Components/PauseButton.cs +21 -7
- package/Runtime/Internal/UI/Modals/GameOverModal.cs +2 -0
- package/Runtime/Resources/UIPrefabs/ControlBar.prefab +2 -2
- package/Runtime/Resources/UIPrefabs/ScoreSubmissionFailedModal_Landscape.prefab +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.8.8](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.7...v1.8.8) (2026-04-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* defer pause to pointer up for Type Rush ([47f419f](https://github.com/mvmhyper/hyper-sdk/commit/47f419fdb280a94994ad20b372a4839320e1f11f))
|
|
7
|
+
|
|
8
|
+
## [1.8.7](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.6...v1.8.7) (2026-04-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update ping thresholds for connection status ([1eb6c95](https://github.com/mvmhyper/hyper-sdk/commit/1eb6c95354bdf7c408c0762c73c16deecd31fd2d))
|
|
14
|
+
|
|
1
15
|
## [1.8.6](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.5...v1.8.6) (2026-04-13)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -120,7 +120,6 @@ namespace Hyper.Internal.Managers
|
|
|
120
120
|
if (IsBattleMode) return;
|
|
121
121
|
|
|
122
122
|
_hasGameEnded = true;
|
|
123
|
-
_dataManager.MuteAudioForGameSessionEnd();
|
|
124
123
|
HyperRuntime.Timer.StopAllTimers();
|
|
125
124
|
|
|
126
125
|
if (!HyperRuntime.GameContent.IsPracticeMenu)
|
|
@@ -859,7 +858,6 @@ namespace Hyper.Internal.Managers
|
|
|
859
858
|
private void EndGameInternal()
|
|
860
859
|
{
|
|
861
860
|
_hasGameEnded = true;
|
|
862
|
-
_dataManager.MuteAudioForGameSessionEnd();
|
|
863
861
|
|
|
864
862
|
_eventManager.InvokeGameEndedEvent();
|
|
865
863
|
HyperRuntime.Timer.StopAllTimers();
|
|
@@ -1396,8 +1394,7 @@ namespace Hyper.Internal.Managers
|
|
|
1396
1394
|
private void ShowTimeUpModalInternal()
|
|
1397
1395
|
{
|
|
1398
1396
|
_hasGameEnded = true;
|
|
1399
|
-
|
|
1400
|
-
|
|
1397
|
+
|
|
1401
1398
|
if (_timeUpModal == null)
|
|
1402
1399
|
{
|
|
1403
1400
|
EnsureTimeUpModal();
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
using Hyper.Internal.Managers;
|
|
2
2
|
using UnityEngine;
|
|
3
3
|
using UnityEngine.EventSystems;
|
|
4
|
+
using UnityEngine.UI;
|
|
4
5
|
|
|
5
6
|
namespace Hyper.Internal
|
|
6
7
|
{
|
|
7
|
-
internal class PauseButton : MonoBehaviour, IPointerDownHandler
|
|
8
|
+
internal class PauseButton : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
|
|
8
9
|
{
|
|
9
10
|
[SerializeField] GameObject notifyDot;
|
|
10
|
-
private GameManager _gameManager;
|
|
11
|
+
private GameManager _gameManager;
|
|
12
|
+
private bool _isTypeRush;
|
|
11
13
|
|
|
12
|
-
void Awake()
|
|
14
|
+
private void Awake()
|
|
13
15
|
{
|
|
14
16
|
_gameManager = HyperRuntime.GameManager;
|
|
17
|
+
_isTypeRush = Application.productName == "Type Rush";
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
private void Start()
|
|
@@ -22,13 +25,24 @@ namespace Hyper.Internal
|
|
|
22
25
|
|
|
23
26
|
private void Notify()
|
|
24
27
|
{
|
|
25
|
-
if (_gameManager.HasGameStarted)
|
|
28
|
+
if (notifyDot != null && _gameManager != null && _gameManager.HasGameStarted)
|
|
29
|
+
notifyDot.SetActive(true);
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
public void OnPointerDown(PointerEventData eventData)
|
|
29
33
|
{
|
|
30
|
-
|
|
34
|
+
if (!_isTypeRush)
|
|
35
|
+
{
|
|
36
|
+
_gameManager.PauseGame();
|
|
37
|
+
}
|
|
31
38
|
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
39
|
|
|
40
|
+
public void OnPointerUp(PointerEventData eventData)
|
|
41
|
+
{
|
|
42
|
+
if (_isTypeRush)
|
|
43
|
+
{
|
|
44
|
+
_gameManager.PauseGame();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -135,6 +135,7 @@ namespace Hyper.Internal
|
|
|
135
135
|
|
|
136
136
|
void ExitBattleGame()
|
|
137
137
|
{
|
|
138
|
+
HyperRuntime.DataManager.MuteAudioForGameSessionEnd();
|
|
138
139
|
HyperRuntime.BackendManager.LogEvent(ConsoleEventType.GameEnd);
|
|
139
140
|
}
|
|
140
141
|
|
|
@@ -167,6 +168,7 @@ namespace Hyper.Internal
|
|
|
167
168
|
// Enable loading circle for exit action
|
|
168
169
|
loadingCircle.SetActive(true);
|
|
169
170
|
|
|
171
|
+
HyperRuntime.DataManager.MuteAudioForGameSessionEnd();
|
|
170
172
|
HyperRuntime.BackendManager.LogEvent(ConsoleEventType.PracticeGameEnd);
|
|
171
173
|
}
|
|
172
174
|
|
|
@@ -129,8 +129,8 @@ MonoBehaviour:
|
|
|
129
129
|
lost: {fileID: 4434394802318301849}
|
|
130
130
|
restored: {fileID: 2473909893973907380}
|
|
131
131
|
dynamicPingIcon: {fileID: 5540111900672461523}
|
|
132
|
-
goodPingMaxMs:
|
|
133
|
-
badPingMaxMs:
|
|
132
|
+
goodPingMaxMs: 230
|
|
133
|
+
badPingMaxMs: 300
|
|
134
134
|
goodPingColor: {r: 0.14509805, g: 0.6666667, b: 0.4, a: 1}
|
|
135
135
|
averagePingColor: {r: 1, g: 0.4862745, b: 0, a: 1}
|
|
136
136
|
goodPingBar: {fileID: 1844935579317689283}
|
|
@@ -369,7 +369,7 @@ PrefabInstance:
|
|
|
369
369
|
m_Modifications:
|
|
370
370
|
- target: {fileID: 1938964183499260594, guid: 795f79a28df189645a971ae8404f16c9, type: 3}
|
|
371
371
|
propertyPath: m_Name
|
|
372
|
-
value:
|
|
372
|
+
value: Retry Button
|
|
373
373
|
objectReference: {fileID: 0}
|
|
374
374
|
- target: {fileID: 4262948092621031161, guid: 795f79a28df189645a971ae8404f16c9, type: 3}
|
|
375
375
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app.hypergames.hypersdk",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.8",
|
|
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",
|