/// <summary>
 /// Run when sandbox is disabled
 /// </summary>
 private void Disable()
 {
     _gameHud.SandboxButtonVisible = false;
     _sandboxWindow?.Close();
     _sandboxWindow = null;
     _spawnWindow?.Close();
     _tilesSpawnWindow?.Close();
     _decalSpawnWindow?.Close();
 }
Exemple #2
0
        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();
            }
        }