예제 #1
0
 void Start()
 {
     _anim = GetComponent <Animator>();
     _masterVolumeSlider.value = (float)(OnGetMasterVolume?.Invoke());
     _musicVolumeSlider.value  = (float)(OnGetMusicVolume?.Invoke());
     _sFXVolumeSlider.value    = (float)(OnGetSFXVolume?.Invoke());
 }
예제 #2
0
    void Start()
    {
        _masterVolumeSlider.value       = (float)(OnGetMasterVolume?.Invoke());
        _musicVolumeSlider.value        = (float)(OnGetMusicVolume?.Invoke());
        _sFXVolumeSlider.value          = (float)(OnGetSFXVolume?.Invoke());
        _pausePanelGroup.alpha          = 0;
        _pausePanelGroup.blocksRaycasts = false;
        _pausePanelGroup.interactable   = false;

        _gameOverText.gameObject.SetActive(false);
        _restartText.gameObject.SetActive(false);
        _nextWaveText.gameObject.SetActive(false);
        _winText.gameObject.SetActive(false);
    }