app.hypergames.hypersdk 1.8.7 → 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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
## [1.8.7](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.6...v1.8.7) (2026-04-13)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -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
|
+
}
|
|
@@ -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",
|