Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e06036

Browse files
- update: Runtime auto init data
1 parent 850b8bb commit 9e06036

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎Runtime/GameData.cs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,19 @@ public static class GameData
1717

1818
#region Internal Stuff
1919

20+
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
21+
private static void RuntimeInit()
22+
{
23+
Init();
24+
}
25+
2026
[MethodImpl(MethodImplOptions.AggressiveInlining)]
2127
public static void Init()
2228
{
2329
if (isInitialized) return;
2430
isInitialized = true;
2531
Load();
32+
Debug.Log($"<color=Green>GameData Initialized</color>");
2633
}
2734

2835
[MethodImpl(MethodImplOptions.AggressiveInlining)]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /