Пример #1
0
        public BotStateMachine(NickBot bot)
        {
            this.bot = bot;



            TransitionTo(MoveBehaviour.moveToRandomPoint);
            TransitionTo(TurretBehaviour.findTarget);

            randomPointMove = DateTime.Now;
        }
Пример #2
0
        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();
            }
        }