title: Unity collider OnTriggerEnter not getting called
body: <p>I've made many <strong>colliders</strong> before and that I used was (collider other<code>OnTriggerEnter(collider other)</code>) and then check if the other collider is the one I want by comparing <strong>TAG</strong>. But this time I'm not triggering the canMelee boolean. My code:</p>
  
  <pre><code>ArrayList Enemy;
  public StatData stat;
  
  [SerializeField]
  private bool canMelee = false;
  
  /// &lt;summary&gt;
  /// OnTriggerEnter is called when the Collider other enters the trigger.
  /// &lt;/summary&gt;
  /// &lt;param name="other"&gt;The other Collider involved in this collision.&lt;/param&gt;
  void OnTriggerEnter(Collider col)
  {
      if (col.tag == "Enemy")
      {
          Debug.Log("Now you can do melee attack!");
          canMelee = true;
      }
  }
  </code></pre>
  
  <p>So I wrote this code but somehow this doesn't work I checked the tag and added it to the player game object but it still doesn't work.</p>
  
  <p>I tried to add another debug to check if OnTriggerEnter() is happening just above the if branch : <code>Debug.Log("Triggered");</code> and it gets triggered.</p>
  
  <p>I can't just figure put what's wrong. Please help me.</p>