public void Remove(Sprite sprite)
 {
     sprites.Remove(sprite);
 }
Пример #2
0
 public bool IsMouseRightNewClickingSprite(Sprite sprite)
 {
     if (IsMouseRightButtonNewPressed() && IsMouseOver(sprite))
     {
         return true;
     }
     return false;
 }
 public void Add(Sprite sprite)
 {
     sprites.Add(sprite);
 }
Пример #4
0
        public bool IsMouseOver(Sprite sprite)
        {
            if ((_currentMouseState.X >= sprite.position.X) && _currentMouseState.X <= (sprite.position.X + sprite.Width) &&
                    _currentMouseState.Y >= sprite.position.Y && _currentMouseState.Y <= (sprite.position.Y + sprite.Height))
                return true;

            return false;
        }