Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Threading;
- public class Thread : MonoBehaviour
- {
- public void ThreadMe()
- {
- Thread thread = new Thread(ThreadMethod);
- thread.Start();
- thread.Join();
- }
- private void ThreadMethod()
- {
- Debug.Log("I'm threaded");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement