private void StartShowBuilder() { if (!showBuilderStarted) { dreamScene.LoadScene(ambientShow); showBuilderSource = new CancellationTokenSource(); Task.Run(() => dreamScene.BuildColors(this, showBuilderSource.Token)); prevAmbientShow = ambientShow; showBuilderStarted = true; LogUtil.WriteInc($"Started new ambient show {ambientShow}."); } }
private void StartShowBuilder() { if (_showBuilderStarted) { StopShowBuilder(); } _dreamScene.LoadScene(_ambientShow); _showBuilderSource = new CancellationTokenSource(); Task.Run(() => _dreamScene.BuildColors(this, _showBuilderSource.Token)); _prevAmbientShow = _ambientShow; _showBuilderStarted = true; }