public void AddNewWorker() { while (!mine.MineIsEmpty()) { Thread.Sleep(10000); Console.Clear(); listWorkers.Add(new Worker(listWorkers.Count + 1, 3, mine)); Console.WriteLine(ToString()); } }
void WorkerWork() { while (!mine.MineIsEmpty()) { Thread.Sleep(1000); mine.gold -= productivity; doneWork += productivity; Console.WriteLine(ToString()); } }