title: Fire based on direction player is facing. Unity Javascript
body: <p>I want to fire a projectile based on the direction the game object is facing. Currently the script only permits the projectile to fire on a certain axis. Here is the line piece of code I need to be edited:</p>
  
  <pre><code>function Fire()
  {
      lastShot = Time.time;
      Instantiate(laser, transform.position, Quaternion.Euler(0, 0, -90));
  }
  </code></pre>