Skip to content

Commit

Permalink
Retrieve name in initialize method
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvinas01 committed Oct 6, 2023
1 parent be9f154 commit c0442a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/com.chark.game-management/Runtime/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ private void Awake()

var isInitialized = currentGameManager == true;

name = GetGameManagerName();
currentGameManager = this;

if (isInitialized == false)
Expand Down Expand Up @@ -172,6 +171,7 @@ private void InitializeGameManager()

private void InitializeCore()
{
name = GetGameManagerName();
runtimeStorage = CreateRuntimeGameStorage();
resourceLoader = CreateResourceLoader();
entityManager = CreateEntityManager();
Expand Down

0 comments on commit c0442a2

Please sign in to comment.