How to cause an effect when an Object Collides with another Object.

Alright look. I’ve searched up and down with this thing in trying to make an effect happen when ever my object collides with another.

Here’s what i’m trying to do. I’m trying to make an area occupied when ever i place an object down in that specific spot.

For example. If a Card is placed in Zone 1. Zone 1 is then occupied and no other card can go there.

Here’s my Code.

function OnCollisionEnter( hit : Collision){
    if ( =={
       Occupied = true;
       			  if (Occupied == true){
       			Debug.Log("This Spot is Occupied");

collisionObject2 is supposed to be my Spot 1 Object.

I’ve been doing this thing and it never Debugs “This Spot is Occupied” nor does it even make my var Occupied true. I watched it.

Please can anyone help me from this madness? I’m losing it…

You might get better results by using tags:

function OnTriggerEnter(col : Collider)
if(col.tag ==“thetagyouchose”)
//code you want to execute