Пример #1
0
 public void DrawOnTop(SpriteBatch spriteBatch)
 {
     if (IsMovingTile)
     {
         TileBeingMoved.Draw(spriteBatch);
     }
 }
Пример #2
0
        /// <summary>
        /// Updates animations and tiles.
        /// </summary>
        public void Update()
        {
            Animate();

            if (IsOpen)
            {
                if (InputSystem.IsLeftMousePressed() && !IsMovingTile)
                {
                    foreach (var tile in _tileHolders)
                    {
                        tile.CheckIfClickedOn();
                    }
                }
            }

            TileBeingMoved.Update(new Vector2(_backDrop.X, _backDrop.Y));
            foreach (var tile in _tileHolders)
            {
                tile.Update(new Vector2(_backDrop.X, _backDrop.Y));
            }

            foreach (var button in _categoryButtons)
            {
                button.Update(_backDrop);
            }
            _categorySelector.Update();
        }