unity c# check for collision code example Example: check for collision unity c# void OnCollisionEnter(Collision col) { }