title: Unity 3d Score increase incrementally when hit by "bullet"
body: <p>I have some code that is supposed to count, one at a time, an enemy being been hit by a ""bullet" and then that enemy is destroyed on collision. My problem is that when I hit the enemy, the score goes up by one and whenever I hit another enemy, it wont increase to two (it stays at one).</p>
  
  <p>I have my canvas and text components working and the script is attached to the enemy.</p>
  
  <pre><code>int score=0;
  int displayScore=0;
  public Text scoreUI;
  
  private void OnCollisionEnter(Collision collision)
  {
      GameObject other = collision.gameObject;
      switch (other.tag)
      {
          case "player":
              break;
          case "bullet":
              displayScore++; //Increment the display score by 1
  
              scoreUI.text = displayScore.ToString(); 
              //Write it to the UI
  
              Destroy(this.gameObject);
              break;
      }
  }
  </code></pre>