Doodle jump help in unity3d c#
<p>I am facing a relatively easy yet important problem with unity. My situation is as follows: </p>

<p>I am making a doodle jump game where I have programmed a prefab monster to move from right to left. Currently the player dies when he is not seen by the camera but I also need him to die when he touches the monster. When he dies I only need a panel with a retry button to appear, no objects need to be destroyed. </p>

<p>The code:</p>

<pre><code>public GameObject panel;

    void OnCollisionEnter(Collision col)
    {
        if (col.gameObject.tag == "Spawn") 
        {
            panel.SetActive(true);
        }
    }
</code></pre>

<p>please help me make the panel appear when he touches the monster. The panel is a prefab, I think that this may be a problem, but if it is not a prefab it doesn't want to assign to the public gameobject, please make the panel appear when the player touches the monster!</p>