public bool CollidesWith(Drink drink) { return Vector3.DistanceSquared(Position, drink.Position) < 10000; }
public void UpdateDrinks(GameTime gameTime) { if (_drink != null && _congaLine.LeadDancer.CollidesWith(_drink)) { _drink = null; _congaLine.AddDrink(50); _score.AddPoints(50); } if (_drink == null) _drink = _drinkEmitter.EmitDrink(); _drink.Update(gameTime); }