com.amanotes.gdk 0.2.29 → 0.2.30

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,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.30 - 2023-11-06]
4
+ - [Fix] GDK should base on realtime instead of game time (which may be pause due to timescale)
5
+
3
6
  ## [0.2.29 - 2023-11-03]
4
7
  - Fix accumulated_count
5
8
  - Fix missing IDFA
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -369,7 +369,7 @@ namespace Amanotes.Core.Internal
369
369
 
370
370
  public abstract class AdLogic
371
371
  {
372
- private static readonly WaitForSeconds wait1Sec = new WaitForSeconds(1f);
372
+ private static readonly WaitForSecondsRealtime wait1Sec = new WaitForSecondsRealtime(1f);
373
373
 
374
374
  internal LoadAdsState _loadState = LoadAdsState.None;
375
375
  internal bool hasAd
@@ -52,7 +52,7 @@ namespace Amanotes.Core
52
52
  private const string AMA_DEVICE_ID_KEY = "ama_device_id";
53
53
  private const float TIME_OUT = 5f;
54
54
  private const float WAIT_TIME = 0.5f;
55
- private WaitForSeconds waitForDuration = new WaitForSeconds(WAIT_TIME);
55
+ private WaitForSecondsRealtime waitForDuration = new WaitForSecondsRealtime(WAIT_TIME);
56
56
 
57
57
  internal IEnumerator Init()
58
58
  {
@@ -9,7 +9,7 @@ using static Amanotes.Core.Internal.Logging;
9
9
 
10
10
  namespace Amanotes.Core.Internal
11
11
  {
12
- public class GDKUtils
12
+ public static class GDKUtils
13
13
  {
14
14
  public static void DelayCall(float seconds, Action action)
15
15
  {
@@ -18,14 +18,13 @@ namespace Amanotes.Core.Internal
18
18
 
19
19
  private static IEnumerator DelayCallRoutine(float seconds, Action callback)
20
20
  {
21
- yield return new WaitForSeconds(seconds);
21
+ yield return new WaitForSecondsRealtime(seconds);
22
22
  callback();
23
23
  }
24
24
  }
25
25
 
26
- internal class GDKFileUtils
26
+ internal static class GDKFileUtils
27
27
  {
28
-
29
28
  private static string _basePath;
30
29
  private static string basePath
31
30
  {
@@ -83,7 +82,7 @@ namespace Amanotes.Core.Internal
83
82
  LogWarningOnce("File name must be not null or empty");
84
83
  return;
85
84
  }
86
-
85
+
87
86
  if (contents == null || !contents.GetEnumerator().MoveNext())
88
87
  {
89
88
  LogWarningOnce($"Content for {fileName} is empty");
package/Runtime/AmaGDK.cs CHANGED
@@ -14,7 +14,7 @@ namespace Amanotes.Core
14
14
  {
15
15
  public partial class AmaGDK : MonoBehaviour
16
16
  {
17
- public const string VERSION = "0.2.29";
17
+ public const string VERSION = "0.2.30";
18
18
 
19
19
  internal static AmaGDK _instance;
20
20
  internal static Status _status = Status.None;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.29",
3
+ "version": "0.2.30",
4
4
  "displayName": "AmaGDK",
5
5
  "description": "Amanotes Game Development Kit",
6
6
  "unity": "2019.4",