Пример #1
0
    private void PlaySound(string sound)
    {
        switch (sound)
        {
        case "Bounce":
            AudioManager.PlaySound("Bounce", modulatePitch: true, volume: 0.75f);
            break;

        case "Score":
            AudioManager.PlaySound("Score", modulatePitch: true, volume: 0.75f);
            break;
        }
    }
Пример #2
0
 private void SetupGame()
 {
     AudioManager.PlaySound(name: "GameTrack", loopable: true, selfDestruct: false, volume: 0.15f);
     SpawnPlayers();
     SpawnBall();
 }
 private void Start()
 {
     AudioManager = GameObject.Find("AudioManager").GetComponent <AudioManagerController>();
     AudioManager.PlaySound(name: "Menu", loopable: true, selfDestruct: false, volume: 0.15f);
 }
 public void LoadPlayerSelect()
 {
     AudioManager.PlaySound(name: "Button", modulatePitch: true, volume: 0.75f);
     StartCoroutine(PlayerSelect());
 }