title: HP Script Unity
body: <p>I have a problem with my script at Unity. I apply this script to my character and nothing happens when it reaches the collider, no HP is taken.</p>
  
  <pre><code>public int HP = 100;
  // Use this for initialization
  void Start () {
  
  }
  
  // Update is called once per frame
  void Update () {
  }
  void LoseHP(Collider col)
  {
      if(col.tag == "trap")
      {
          HP -= 100;
      }
  }
  </code></pre>