Esempio n. 1
0
 public bool CollidesWith(Drink drink)
 {
     return Vector3.DistanceSquared(Position, drink.Position) < 10000;
 }
Esempio n. 2
0
        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);
        }