public void PlaySound() { soundOnBtn.GetComponent <Button>().interactable = false; soundOnBtn.SetActive(false); main.PlaySound(); soundOffBtn.GetComponent <Button>().interactable = true; soundOffBtn.SetActive(true); }
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(); }