private void ToggleTilesWindow() { if(_tilesSpawnWindow == null) _tilesSpawnWindow = new TileSpawnWindow(_tileDefinitionManager, _placementManager, _resourceCache); if (_tilesSpawnWindow.IsOpen) { _tilesSpawnWindow.Close(); } else { _tilesSpawnWindow = new TileSpawnWindow(_tileDefinitionManager, _placementManager, _resourceCache); _tilesSpawnWindow.OpenToLeft(); } }
private void OnSpawnTilesButtonClicked(BaseButton.ButtonEventArgs args) { var window = new TileSpawnWindow(__tileDefinitionManager, _placementManager, _resourceCache); window.OpenToLeft(); }