I have started to try and give multithreading a go. I created a thread and want it to wait for a few seconds before it resumes.
public void Claim()
{
Thread myThread = new Thread( () => SetFaction(Factions.Split));
Debug.Log("starting");
// wait for a few seconds
// resume
}
public void SetFaction(Factions faction)
{
Debug.Log("claimed");
}
I know unity has easier ways of completing this task, but as stated before I want to learn more about multithreading.