Пример #1
0
 void shootClick()
 {
     AudioBG.ButtonSound();
     game = 0;
     AudioBG.PauseMusic();
     SceneManager.LoadScene("StartScene");
 }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        AudioBG.PauseMusic();
        save.onClick.AddListener(saveClick);
        sounds = GetComponents <AudioSource>();

        dp.onValueChanged.AddListener(delegate
        {
            StopAllSounds();
            sounds[dp.value].Play();
        });
    }