Ejemplo n.º 1
0
        public PartsPalette()
        {
            _settings = DependencyInjection.Resolve<IReadOnlySettings>();

            _partSelector = new PartSelector(X, Y, YIncrement);
            _swapUpButton = new SwapUpButton(X + 100, Y + SwapButtonsYAddition);
            _swapDownButton = new SwapDownButton(X + 120, Y + SwapButtonsYAddition);
            _mirrorButton = new MirrorButton(X + 140, Y);
            _resetButton = new ResetButton(X + 162, Y);
            _deleteButton = new DeleteButton(X + 180, Y);

            _settings.SelectedPartChanged += UpdateSelectedPartOptions;
            UpdateSelectedPartOptions();
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     instance = this;
 }