Advertisement
Eonirr

Untitled

May 25th, 2023
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. using System.Threading;
  2.  
  3. public class Thread : MonoBehaviour
  4. {
  5. public void ThreadMe()
  6. {
  7. Thread thread = new Thread(ThreadMethod);
  8.  
  9. thread.Start();
  10.  
  11. thread.Join();
  12. }
  13.  
  14. private void ThreadMethod()
  15. {
  16. Debug.Log("I'm threaded");
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement