commit
1288cbc128
|
@ -0,0 +1,17 @@
|
||||||
|
#if UNITY_2023_1_OR_NEWER
|
||||||
|
namespace Cysharp.Threading.Tasks
|
||||||
|
{
|
||||||
|
public static class UnityAwaitableExtensions
|
||||||
|
{
|
||||||
|
public static async UniTask AsUniTask(this UnityEngine.Awaitable awaitable)
|
||||||
|
{
|
||||||
|
await awaitable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static async UniTask<T> AsUniTask<T>(this UnityEngine.Awaitable<T> awaitable)
|
||||||
|
{
|
||||||
|
return await awaitable;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c29533c9e4284dee914b71a6579ea274
|
||||||
|
timeCreated: 1698895807
|
Loading…
Reference in New Issue