MainThreadDispatch.cs 306 B

1234567891011121314
  1. using UnityEngine;
  2. using System.Threading;
  3. namespace Immersal.Samples.Util
  4. {
  5. public class MainThreadDispatch : IDispatch
  6. {
  7. public MainThreadDispatch () : base ()
  8. {
  9. targetThread = Thread.CurrentThread;
  10. Camera.onPostRender += updateLoop;
  11. }
  12. }
  13. }