public void DrawOnTop(SpriteBatch spriteBatch) { if (IsMovingTile) { TileBeingMoved.Draw(spriteBatch); } }
/// <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(); }