public void DoStuff(float dT) { this.Description = "Idle"; if (GameScenes.MainGame.DebugKeyDown) { this.Description = "Idle"; } if (this.Tasks.Count > 0) { DoTasks(dT); } else { if (CurrentTask != null) { DoTasks(dT); return; } ITask t = ParentMap.GetTask(this); if (t != null) { t.Actor = this; this.Tasks.Enqueue(t); } else { Console.Write(this.Name + " is idling"); DoRandomShit(dT); } } }