public void renderPoint(SpriteBatch _spriteBatch, Vector2 position, bool isred) { if (isred) { BehaviourUtil.RenderPoint(_spriteBatch, position, Color.Red); } else { BehaviourUtil.RenderPoint(_spriteBatch, position, Color.Green); } }
public override void Render(GameTime gameTime, SpriteBatch _spriteBatch, Vector2 Position) { if (Settings.RenderDistancing) { CalculateResultingVector(); BehaviourUtil.RenderVector(_spriteBatch, currentVector, Position, 20, Color.Blue); foreach (Vector2 target in targets) { BehaviourUtil.RenderPoint(_spriteBatch, Vector2.Subtract(Position, target), Color.Yellow); } } }