com.wallstop-studios.unity-helpers 2.0.0-rc56 → 2.0.0-rc57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,10 +76,12 @@
76
76
  await asyncOp;
77
77
  }
78
78
 
79
+ #if !UNITY_2023_1_OR_NEWER
79
80
  public static AsyncOperationAwaiter GetAwaiter(this AsyncOperation op)
80
81
  {
81
82
  return new AsyncOperationAwaiter(op);
82
83
  }
84
+ #endif
83
85
 
84
86
  public static async ValueTask WithContinuation(this ValueTask task, Action continuation)
85
87
  {
@@ -2,9 +2,11 @@
2
2
  {
3
3
  using System;
4
4
  using System.Collections.Concurrent;
5
- using UnityEditor;
6
5
  using UnityEngine;
7
6
  using Utils;
7
+ #if UNITY_EDITOR
8
+ using UnityEditor;
9
+ #endif
8
10
 
9
11
  [ExecuteAlways]
10
12
  public sealed class UnityMainThreadDispatcher : RuntimeSingleton<UnityMainThreadDispatcher>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc56",
3
+ "version": "2.0.0-rc57",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},