diff --git a/Runtime/GameData.cs b/Runtime/GameData.cs index 959e1ba..03a7023 100644 --- a/Runtime/GameData.cs +++ b/Runtime/GameData.cs @@ -17,12 +17,19 @@ public static class GameData #region Internal Stuff + [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] + private static void RuntimeInit() + { + Init(); + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void Init() { if (isInitialized) return; isInitialized = true; Load(); + Debug.Log($"GameData Initialized"); } [MethodImpl(MethodImplOptions.AggressiveInlining)]