public void Initialize() { _spaceInfo.CurrentScale = _configuration.MinScale; _input.ScaleUpFire().Subscribe(_ => { _spaceInfo.CurrentScale = Math.Min(_spaceInfo.CurrentScale + DeltaChange, _configuration.MaxScale); _expansionChecker.Check(); if (_changed != null) { _changed(_spaceInfo.CurrentScale); } }); _input.ScaleDownFire().Subscribe(_ => { _spaceInfo.CurrentScale = Math.Max(_spaceInfo.CurrentScale - DeltaChange, _configuration.MinScale); _expansionChecker.Check(); if (_changed != null) { _changed(_spaceInfo.CurrentScale); } }); }