Horje
Unity Pause Game c# Code Example
how to pause your game unity
using UnityEngine;

void Pause()
{
	Time.timeScale = 0;
}

void Unpause()
{
    Time.timeScale = 1;
}
how to pause physics in unity c#
    Physics.autoSimulation = false;
Unity Pause Game c#
void PauseGame ()
    {
        Time.timeScale = 0f;
        AudioListener.pause = true;
    }

void ResumeGame ()
    {
        Time.timeScale = 1;
        AudioListener.pause = false;
    }Copy




Csharp

Related
singleton pattern c# Code Example singleton pattern c# Code Example
c# generate guid from hash Code Example c# generate guid from hash Code Example
interpolate rotation unity3d Code Example interpolate rotation unity3d Code Example
c#  square every digit of a number Code Example c# square every digit of a number Code Example
c# convert to nullable datetime Code Example c# convert to nullable datetime Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8