check for collision unity c#

C#
void OnCollisionEnter(Collision col) { }
Source

Also in C#: