camera collision visibility (c#)

Hello people

Simple question
my Camera is moving along a path …

and when it hits an invisible plane, I want it to trigger the visibility of other planes I identify in the inspector (P1, P2 etc)
Ideally I would like to use a bool so that I can trigger it off later…
What’s wrong with my logic?
Thanks

using UnityEngine;
using System.Collections;

public class tagVisible : MonoBehaviour {

 	public GameObject P1;
	public GameObject P2;
	public GameObject P3;

	bool showMe = false;
	
	// Use this for initialization
	void Start () {
		//GameObject[] f1 = GameObject.FindGameObjectsWithTag("city"); 
		P1.GetComponent<MeshRenderer>().enabled = false;
		P2.GetComponent<MeshRenderer>().enabled = false;
		P3.GetComponent<MeshRenderer>().enabled = false;
	}



	void OnCollision (Camera) {
		Debug.Log("hit");

			if(showMe = false) {
			showMe = true;
		}

		if(showMe = true) {
			P1.GetComponent<MeshRenderer>().enabled = true;
			P2.GetComponent<MeshRenderer>().enabled = true;
			P3.GetComponent<MeshRenderer>().enabled = true;
			
		}


	}

}

It’s not OnCollision, it’s OnCollisionEnter.

void OnCollisionEnter(Collision col)
{
    Debug.Log("hit");
 
    if(showMe = false) {
        showMe = true;
    }
 
    if(showMe = true) {
        P1.GetComponent<MeshRenderer>().enabled = true;
        P2.GetComponent<MeshRenderer>().enabled = true;
        P3.GetComponent<MeshRenderer>().enabled = true;
 
    }
}

And as you can see it doesn’t send a Camera parameter but Collision instead.

Nick Everything worked after I changed it from onCollisionEnter(Collider coll)

to OnTriggerEnter(Collider other)

Thanks so much for your persistence and help