public void Setup(GameUIService service) { _service = service; var settings = new GameUISettings { InitialPoints = service.Points, InputCallbacks = new Dictionary <KeyCode, Action> { { KeyCode.Escape, service.ToggleOptions } } }; _components.Setup(settings); _service.PointsChanged += _components.UpdatePoints; }
public void Setup(GameUISettings settings) { UpdatePoints(settings.InitialPoints); _inputCallbacks = settings.InputCallbacks; }