title: C# (Unity 4.3) Cannot implicitly convert type `ShotScript[]' to `ShotScript'
body: <p><strong>Thanks all! The issue was I was using GetComponents rather than GetComponent, thanks!</strong></p>
  
  <p>I am fairly new to programming and I am trying to make a 2D game in Unity. I have found a tutorial online which is really good, up until a point (Tut can be found here <a href="http://pixelnest.io/tutorials/2d-game-unity/shooting-1/" rel="nofollow">http://pixelnest.io/tutorials/2d-game-unity/shooting-1/</a>). I've come across an error and can't figure out why. The error occurs when I try and use another script inside my current script (if that makes sense to anyone). The two scripts in question have the name ShotScript and HealthScript and they are below</p>
  
  <p>ShotScript:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class ShotScript : MonoBehaviour {
  
  
  public int damage = 1;
  
  public bool isEnemyShot = false;
  
  void Start () {
  
      Destroy (gameObject, 20);
  }
  
  
  
  }
  </code></pre>
  
  <p>HealthScript:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class NewBehaviourScript : MonoBehaviour {
  
  
  public int hp = 2;
  
  public bool isEnemy = true;
  
  void OnTriggerEnter2D(Collider2D Collider) {
  
          ShotScript shot = collider.gameObject.GetComponents&lt;ShotScript&gt;();
              if (shot != null) {
                      if (shot.isEnemyShot != isEnemy) {
                              hp -= shot.damage;
                              Destroy (shot.gameObject);
  
                              if (hp &lt;= 0) {
                                      Destroy(gameObject);
                              }
                      }
              }
      }
  
  
  }
  </code></pre>
  
  <p>The error I get is:
  "Assets/Scripts/HealthScript.cs(13,36): error CS0029: Cannot implicitly convert type      <code>ShotScript[]' to</code>ShotScript'"</p>
  
  <p>I'm rather stuck and so if anyone could point me in the right direction, that'll be great =)</p>
  
  <p>P.S I'm new to this asking questions thing, so if you need any extra info, I'll do my best to provide it</p>