Skip to content

Commit cfd37ae

Browse files
committed
DontDestroyOnLoad AsyncManager instance in editor
See muckSponge#13
1 parent a26e675 commit cfd37ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

UnityAsync/Assets/UnityAsync/Manager/AsyncManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ static void Initialize()
5555
fixedUpdates = new ContinuationProcessorGroup();
5656

5757
Instance = new GameObject("Async Manager").AddComponent<AsyncManager>();
58-
if(!Application.isEditor) // DontDestroyOnLoad can not be called in editor mode
59-
DontDestroyOnLoad(Instance);
58+
59+
DontDestroyOnLoad(Instance);
6060
}
6161

6262
/// <summary>

0 commit comments

Comments
 (0)