i want to Instantiate prefab when have a collision c# : i want to Instantiate prefab in unity  when i have a collision 

now i use this code 

            if (IgnourColl.Ddeer = true) {

            Instantiate(Deer, new Vector3(TPlayer.transform.position.x + 5, TPlayer.transform.position.y, 0), Quaternion.identity);
            IgnourColl.Ddeer = false;
        }


IgnourColl.Ddeer = false; is a bool become true if have collision ; 

i add false after true so Instantiate stop until another collision ...

everything is work fine, but the if statement does't work Instantiate is not stop after he Instantiate  the first prefab 
