Пример #1
0
 public void PlaySound()
 {
     soundOnBtn.GetComponent <Button>().interactable = false;
     soundOnBtn.SetActive(false);
     main.PlaySound();
     soundOffBtn.GetComponent <Button>().interactable = true;
     soundOffBtn.SetActive(true);
 }
Пример #2
0
        private void AddSounds()
        {
            AFSoundManager.Instance.Add(main.somAmbiente, null, 1f, 1f, true);
            AFSoundManager.Instance.Add(main.somBallHitPaddle, null, 1f, 1f, false, false);
            AFSoundManager.Instance.Add(main.somBallHitWall, null, 1f, 1f, false, false);
            AFSoundManager.Instance.Add(main.somPlayerScores, null, 1f, 1f, false, false);
            AFSoundManager.Instance.Add(main.somIAScores, null, 1f, 1f, false, false);

            main.PlaySound();
        }