app.hypergames.hypersdk 1.8.19 → 1.8.21

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/HyperLoader.unity +3 -3
  3. package/Runtime/Internal/Managers/DataManager.cs +38 -2
  4. package/Runtime/Internal/Managers/GameManager.cs +34 -23
  5. package/Runtime/Internal/UI/Animation/SlideUp.cs +6 -1
  6. package/Runtime/Internal/UI/Components/RoundedRawImage.cs +146 -0
  7. package/Runtime/Internal/UI/Components/RoundedRawImage.cs.meta +11 -0
  8. package/Runtime/Internal/UI/Modals/GamePausedModal.cs +2 -0
  9. package/Runtime/Internal/UI/Modals/TutorialButton.cs +10 -0
  10. package/Runtime/Internal/UI/Modals/TutorialLoaderModal.cs +31 -4
  11. package/Runtime/Internal/UI/Modals/TutorialModal.cs +814 -47
  12. package/Runtime/Plugins/WebGL/HyperTutorialCachePlugin.jslib +35 -53
  13. package/Runtime/Resources/Materials/RoundedRawImage.mat +65 -0
  14. package/Runtime/Resources/Materials/RoundedRawImage.mat.meta +8 -0
  15. package/Runtime/Resources/Materials.meta +8 -0
  16. package/Runtime/Resources/RenderTextures/TutorialVideoTexture P.renderTexture +3 -3
  17. package/Runtime/Resources/Shaders/RoundedRawImage.shader +142 -0
  18. package/Runtime/Resources/Shaders/RoundedRawImage.shader.meta +10 -0
  19. package/Runtime/Resources/Shaders/RoundedStrip.shader +152 -0
  20. package/Runtime/Resources/Shaders/RoundedStrip.shader.meta +10 -0
  21. package/Runtime/Resources/Shaders.meta +8 -0
  22. package/Runtime/Resources/Sprites/Frames/Square.png +0 -0
  23. package/Runtime/Resources/Sprites/Frames/Square.png.meta +186 -0
  24. package/Runtime/Resources/Sprites/TutorialModal/Button_Back.png.meta +1 -1
  25. package/Runtime/Resources/Sprites/TutorialModal/Button_Next.png.meta +1 -1
  26. package/Runtime/Resources/Sprites/TutorialModal/Knob.png.meta +1 -1
  27. package/Runtime/Resources/Sprites/TutorialModal/Tutorial_Background_Portrait.png.meta +3 -3
  28. package/Runtime/Resources/UIPrefabs/GameOverModal_Battle.prefab +1 -1
  29. package/Runtime/Resources/UIPrefabs/GameOverModal_Practice.prefab +1 -1
  30. package/Runtime/Resources/UIPrefabs/GamePausedModal_Battle.prefab +1 -1
  31. package/Runtime/Resources/UIPrefabs/IndicatorCircle.prefab +2 -2
  32. package/Runtime/Resources/UIPrefabs/TutorialLandscapeModal.prefab +1614 -1184
  33. package/Runtime/Resources/UIPrefabs/TutorialLandscapeModal.prefab.meta +1 -1
  34. package/Runtime/Resources/UIPrefabs/TutorialPortraitModal.prefab +1409 -948
  35. package/Runtime/Shared/DTOs/TutorialData.cs +18 -1
  36. package/package.json +1 -1
@@ -33,5 +33,22 @@ namespace Hyper.Shared
33
33
  /// Array of URLs to tutorial images (used when type is images).
34
34
  /// </summary>
35
35
  public string[] imageUrls;
36
+
37
+ /// <summary>
38
+ /// Ordered mixed tutorial cards. When present, these are used instead of the legacy single-type fields above.
39
+ /// </summary>
40
+ public TutorialCardData[] cards;
41
+ }
42
+
43
+ [Serializable]
44
+ public class TutorialCardData
45
+ {
46
+ public TutorialType type;
47
+ public int position;
48
+ public string description;
49
+ public UnityEngine.Video.VideoClip videoClip;
50
+ public string videoUrl;
51
+ public Sprite image;
52
+ public string imageUrl;
36
53
  }
37
- }
54
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app.hypergames.hypersdk",
3
- "version": "1.8.19",
3
+ "version": "1.8.21",
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",