File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
Assets/MRTK/Core/Utilities/Async Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,6 @@ private static void RunOnUnityScheduler(Action action)
141141 {
142142 if ( SynchronizationContext . Current == SyncContextUtility . UnitySynchronizationContext )
143143 {
144- // Take the opportunity to ensure AsyncCoroutineRunner is running when we are on the Unity thread
145- if ( ! AsyncCoroutineRunner . IsInstanceRunning )
146- {
147- var _ = AsyncCoroutineRunner . Instance ;
148- }
149144 action ( ) ;
150145 }
151146 else
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ private void OnDisable()
161161 }
162162 }
163163
164- private void Awake ( )
164+ private void OnEnable ( )
165165 {
166166 Debug . Assert ( Instance == this , "[AsyncCoroutineRunner] There should only be one AsyncCoroutineRunner in the scene." ) ;
167167 isInstanceRunning = true ;
You can’t perform that action at this time.
0 commit comments