public void RandomizeStaircase()
        {
            var possibleStaircases = new List <Staircase>();

            if (_sessionSettings.directionStaircaseEnabled)
            {
                possibleStaircases.Add(_directionStaircase);
            }
            if (_sessionSettings.positionStaircaseEnabled)
            {
                possibleStaircases.Add(_locationStaircase);
            }
            CurrentStaircase = possibleStaircases[Random.Range(0, possibleStaircases.Count)];
        }
        public StaircaseManager(SessionSettings sessionSettings)
        {
            _sessionSettings = sessionSettings;

            _directionStaircase = new Staircase(sessionSettings.coherenceStaircase,
                                                sessionSettings.staircaseIncreaseThreshold,
                                                sessionSettings.staircaseDecreaseThreshold);

            _locationStaircase = new Staircase(sessionSettings.coherenceStaircase,
                                               sessionSettings.staircaseIncreaseThreshold,
                                               sessionSettings.staircaseDecreaseThreshold);
            CurrentStaircase = _directionStaircase;
            if (!sessionSettings.directionStaircaseEnabled && !sessionSettings.positionStaircaseEnabled)
            {
                Debug.LogWarning("No staircase is enabled! Please enable one in the JSON settings.");
            }
        }