-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unify single and multiple scene tests
- Loading branch information
Showing
10 changed files
with
94 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Packages/com.mygamedevtools.scene-loader/Runtime/Utilities/WaitValueTask.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Collections; | ||
using System.Threading.Tasks; | ||
|
||
namespace MyGameDevTools.SceneLoading | ||
{ | ||
public readonly struct WaitValueTask<T> : IEnumerator | ||
{ | ||
public object Current => null; | ||
|
||
public readonly ValueTask<T> ValueTask; | ||
|
||
public WaitValueTask(ValueTask<T> valueTask) | ||
{ | ||
ValueTask = valueTask; | ||
} | ||
|
||
public bool MoveNext() | ||
{ | ||
return !ValueTask.IsCompleted && !ValueTask.IsCanceled && !ValueTask.IsFaulted; | ||
} | ||
|
||
public void Reset() { } | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
Packages/com.mygamedevtools.scene-loader/Runtime/Utilities/WaitValueTask.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.