Database Support
Refactored almost everything, but most importantly we now integrate with RethinkDB for game data.
This commit is contained in:
parent
5ffeb55214
commit
0b46d5ee39
839 changed files with 77349 additions and 112660 deletions
|
|
@ -117,13 +117,7 @@ namespace UniRx
|
|||
}
|
||||
|
||||
var type = current.GetType();
|
||||
if (type == typeof(WWW))
|
||||
{
|
||||
var www = (WWW)current;
|
||||
editorQueueWorker.Enqueue(_ => ConsumeEnumerator(UnwrapWaitWWW(www, routine)), null);
|
||||
return;
|
||||
}
|
||||
else if (type == typeof(AsyncOperation))
|
||||
if (type == typeof(AsyncOperation))
|
||||
{
|
||||
var asyncOperation = (AsyncOperation)current;
|
||||
editorQueueWorker.Enqueue(_ => ConsumeEnumerator(UnwrapWaitAsyncOperation(asyncOperation, routine)), null);
|
||||
|
|
@ -156,15 +150,6 @@ namespace UniRx
|
|||
}
|
||||
}
|
||||
|
||||
IEnumerator UnwrapWaitWWW(WWW www, IEnumerator continuation)
|
||||
{
|
||||
while (!www.isDone)
|
||||
{
|
||||
yield return null;
|
||||
}
|
||||
ConsumeEnumerator(continuation);
|
||||
}
|
||||
|
||||
IEnumerator UnwrapWaitAsyncOperation(AsyncOperation asyncOperation, IEnumerator continuation)
|
||||
{
|
||||
while (!asyncOperation.isDone)
|
||||
|
|
@ -431,7 +416,11 @@ namespace UniRx
|
|||
{
|
||||
#if UNITY_EDITOR
|
||||
// Don't try to add a GameObject when the scene is not playing. Only valid in the Editor, EditorView.
|
||||
if (!ScenePlaybackDetector.IsPlaying) return;
|
||||
if (!ScenePlaybackDetector.IsPlaying)
|
||||
{
|
||||
//var _ = EditorThreadDispatcher.Instance;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
MainThreadDispatcher dispatcher = null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue