UnityMainThreadDispatcher
UnityMainThreadDispatcher copied to clipboard
Use SemaphoreSlim instead of lock()
To enhance performances, avoid classic lock and use a SemaphoreSlim(1,1) light lock.