how to pause physics in unity c#

C#
    Physics.autoSimulation = false;
Source

Also in C#: