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
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAsyncAwaitUtil
|
||||
{
|
||||
public static class SyncContextUtil
|
||||
{
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
||||
static void Install()
|
||||
{
|
||||
UnitySynchronizationContext = SynchronizationContext.Current;
|
||||
UnityThreadId = Thread.CurrentThread.ManagedThreadId;
|
||||
}
|
||||
|
||||
public static int UnityThreadId
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public static SynchronizationContext UnitySynchronizationContext
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue