[Solved] Unity3d how can i program my game?


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

solved Unity3d how can i program my game?