示例#1
0
 private void UpdateAmbientShow(int newShow)
 {
     if (prevAmbientShow == newShow)
     {
         return;
     }
     StopShowBuilder();
     StartShowBuilder();
     dreamScene.LoadScene(newShow);
     prevAmbientShow = newShow;
 }
示例#2
0
 private void StartShowBuilder()
 {
     if (_showBuilderStarted)
     {
         StopShowBuilder();
     }
     _dreamScene.LoadScene(_ambientShow);
     _showBuilderSource = new CancellationTokenSource();
     Task.Run(() => _dreamScene.BuildColors(this, _showBuilderSource.Token));
     _prevAmbientShow    = _ambientShow;
     _showBuilderStarted = true;
 }