title: Unity Gaming Error - This message parameter has to be of type collider
body: <p>I am currently programming a game in Unity3d but I have some problems. I'm doing a Animal information game. So for example. If I go near an animal it will trigger a dialog box (using <code>onTriggerEnter</code>) where it will be shown some information. This information will be shown in 2 pages.</p>
  
  <p>My problem now is that when i write the code in the console i get an error</p>
  
  <blockquote>
    <p>This message parameter has to be of type collider.</p>
  </blockquote>
  
  <p>Now I get it that <code>onTriggerEnter</code> has to be of type collider but I need also the parameter bool clicked. I don't know how to solve it.
  My Script:</p>
  
  <pre><code>void OnTriggerEnter(bool clicked)
  {
      if (gameObject.tag == "Player")
      {
          dialogboxFirstPage.SetActive(true);
          dialogboxSecondPage.SetActive(false);
          nextPageButton.SetActive(true);
          dialogtextFirstPage.text = "Some text";
          //dialogtextSecondPage.text = "";
          Debug.Log("OnTriggerEnter");
      }
      else
      {
          if(gameObject.tag == "Player" &amp;&amp; clicked == true)
          {
              dialogboxFirstPage.SetActive(false);
              dialogboxSecondPage.SetActive(true);
              nextPageButton.SetActive(true);
              //dialogtextFirstPage.text = " ";
              dialogtextSecondPage.text = "dfdfdfd";
          }
      }
  </code></pre>