title: Scripting audio in Unity5
body: <p>Good day everyone!
  I'm starting up in Unity 5 AND C# and I'm following a tutorial, thing is... the tutorial was made for Unity 4, therefore some of the code in the tutorial is not usable in U5. This time my problem is with scripting audio to an action, here follows the code:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  [System.Serializable]
  
  public class Boundary
  {
      public float xMin, xMax, zMin, zMax;
  }
  
  public class PlayerController : MonoBehaviour
  {
  
  public float speed;
  public float tilt;
  public Boundary boundary;
  
  public GameObject shot;
  public float fireRate;
  public Transform shotSpawn;
  
  private float nextFire;
  
  void Update()
  {
      if (Input.GetButton ("Fire1") &amp;&amp; Time.time &gt; nextFire)
      {
          nextFire = Time.time + fireRate;
          Instantiate (shot, shotSpawn.position, shotSpawn.rotation);
          Audio.Play(); &lt;---
      }
  }
  
  void FixedUpdate ()
  {
      float moveHorizontal = Input.GetAxis ("Horizontal");
      float moveVertical = Input.GetAxis ("Vertical");
  
      Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
  
      Rigidbody rb = GetComponent&lt;Rigidbody&gt; ();
      rb.velocity = movement * speed;
  
      rb.position = new Vector3 
          (
              Mathf.Clamp (rb.position.x, boundary.xMin, boundary.xMax),
              0.0f,
              Mathf.Clamp (rb.position.z, boundary.zMin, boundary.zMax)
          );
      rb.rotation = Quaternion.Euler (0.0f, 0.0f, rb.velocity.x * -tilt);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>So there you go, the line "audio.Play();" is not compiled as there's nothing in U5 even close to that syntax. Can anyone give me a hint here?</p>
  
  <p>Thanks in advance! </p>