Thread.cs 499 B

1234567891011121314151617181920212223242526
  1. #if UNITY_METRO
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading;
  8. namespace UniRx
  9. {
  10. public static class Thread
  11. {
  12. public static void Sleep(TimeSpan wait)
  13. {
  14. new System.Threading.ManualResetEvent(false).WaitOne(wait);
  15. }
  16. public static void Sleep(int ms)
  17. {
  18. new System.Threading.ManualResetEvent(false).WaitOne(ms);
  19. }
  20. }
  21. }
  22. #endif