Example #1
0
        protected override void Start()
        {
            OnInitVolume?.Invoke(volume);

            volume.onValueChanged.AddListener(vol => { OnChangeVolume?.Invoke(vol); });


            backBtn.onClick.AddListener(() =>
            {
                content.SetActive(false);
                OnLoadMainMenu?.Invoke();
            });
        }
Example #2
0
        protected override void Start()
        {
            OnInitVolume?.Invoke(_volume);

            _volume.onValueChanged.AddListener(volume => { OnChangeVolume?.Invoke(volume); });

            foreach (var shipColorBtn in _shipColorBtns)
            {
                shipColorBtn.Button.onClick.AddListener(() => { OnChangeColor?.Invoke(shipColorBtn.Color); });
            }

            _backBtn.onClick.AddListener(() =>
            {
                _content.SetActive(false);
                OnLoadMainMenu?.Invoke();
            });
        }