title: How to add multiple audio sources on a single game object?
body: <p>So I have a script that counts points when I collide with tagged game objects. I want the game to make a different sound when I hit different objects. So Here is my script:</p>
  
  <pre><code>using UnityEngine;
  using UnityEngine.UI;
  using System.Collections;
  
  public class POINTS1 : MonoBehaviour
  {
  
  public Text countText;
  public Text winText;
  
  
  
  private int count;
  
  
  void Start()
  {
  
      count = 0;
      SetCountText();
      winText.text = "";
      PlayerPrefs.SetInt("score", count);
      PlayerPrefs.Save();
      count = PlayerPrefs.GetInt("score", 0);
  }
  
  
  
  void OnTriggerEnter(Collider other)
  {
      if (other.gameObject.CompareTag("Pickup"))
      {
          other.gameObject.SetActive(false);
          count = count + 100;
          SetCountText();
      }
  
  
      else if (other.gameObject.CompareTag("minus300"))
      {
          other.gameObject.SetActive(false);
          count = count - 300;
          SetCountText();
          {
              GetComponent&lt;AudioSource&gt;().Play();
          }
      }
  
      PlayerPrefs.SetInt("score", count);
      PlayerPrefs.Save();
      count = PlayerPrefs.GetInt("score", 0);
  }
  
  void SetCountText()
  {
      PlayerPrefs.SetInt("score", count);
      PlayerPrefs.Save();
      count = PlayerPrefs.GetInt("score", 0);
      countText.text = "Score: " + count.ToString();
          if (count &gt;= 5000)
          {
              winText.text = "Good Job!";
          }
      }
  
  
  }
  </code></pre>
  
  <p>So how do I have a different sound for the PickUp object and the Minus300 object? Thank you!</p>