unity how to add a bullet impact force

C#
         if (hit.transform.tag == "Physics")         {             hit.rigidbody.AddForceAtPosition (bulletDirection * bulletForce, hit.point);         }
Source

Also in C#: