public BotStateMachine(NickBot bot) { this.bot = bot; TransitionTo(MoveBehaviour.moveToRandomPoint); TransitionTo(TurretBehaviour.findTarget); randomPointMove = DateTime.Now; }
static void Main(string[] args) { NickBot bot = new NickBot(); while (true) { try { while (!bot.BotQuit) { bot.Update(); //run at 60Hz Thread.Sleep(16); } } catch (Exception ex) { Console.WriteLine(ex.ToString()); } Console.ReadLine(); } }