protected override void Start() { OnInitVolume?.Invoke(volume); volume.onValueChanged.AddListener(vol => { OnChangeVolume?.Invoke(vol); }); backBtn.onClick.AddListener(() => { content.SetActive(false); OnLoadMainMenu?.Invoke(); }); }
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(); }); }