public void Update(Bot bot) { bot.acceleration += Behaviours.Seek(bot); if (bot.GetStaticMap().IsLineOfSight(bot.GetPosition(), bot.Enemy.GetPosition())) { bot.SetState(new Pursue()); } }
public void Update(Bot bot) { bot.acceleration += Behaviours.Seek(bot); if (bot.GetStaticMap().IsLineOfSight(bot.GetPosition(), bot.Enemy.GetPosition())) { bot.SetState(new Pursue()); } }