Beispiel #1
0
        private void Start()
        {
            ResetFill();

            var token = this.GetCancellationTokenOnDestroy();

            _cubeIndex.WithoutCurrent().Subscribe(FillGrid, token);
            _gameplayState.Where(state => state == GameplayStateEnum.CubeComplete).Subscribe(_ => FinalizeFills(), token);
        }
        private void Start()
        {
            var token = this.GetCancellationTokenOnDestroy();

            _cubeIndex.WithoutCurrent().Subscribe(OpenBottom, token);

            UniTaskAsyncEnumerable.EveryValueChanged(_activeCube, collection => collection.IsCompleted)
            .Where(completed => completed)
            .Subscribe(_ => OnCubeCompleted(), token);
        }