diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/PlayerLoopHelper.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/PlayerLoopHelper.cs index c98b683..bada953 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/PlayerLoopHelper.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/PlayerLoopHelper.cs @@ -123,7 +123,7 @@ namespace Cysharp.Threading.Tasks static ContinuationQueue[] yielders; static PlayerLoopRunner[] runners; - static readonly Dictionary subSystems = new Dictionary();//TODO:Replace this with much faster dictionary. + static Dictionary subSystems;//TODO:Replace this with much faster dictionary. static SpinLock subSystemsLock; static PlayerLoopSystem[] InsertRunner(PlayerLoopSystem loopSystem, @@ -333,7 +333,7 @@ namespace Cysharp.Threading.Tasks { yielders = new ContinuationQueue[14]; runners = new PlayerLoopRunner[14]; - + subSystems = new Dictionary(); var copyList = playerLoop.subSystemList.ToArray(); // Initialization