[Solved] Unity3d how can i program my game?

[ad_1]

You could fill the Pits with Box Collidiers wich are marked as Triggers.

Then you write a Script with

void OnTriggerEnter(Collider other){
if(other.gameobject.tag == "Player")
//do something
}

Doku OnTrigger Enter

That should do the Job

1

[ad_2]

solved Unity3d how can i program my game?