So pausieren Sie Ihre Spieleinheit
using UnityEngine;
void Pause()
{
Time.timeScale = 0;
}
void Unpause()
{
Time.timeScale = 1;
}
DatMAD
using UnityEngine;
void Pause()
{
Time.timeScale = 0;
}
void Unpause()
{
Time.timeScale = 1;
}
if(Pause){
Time.timeScale = 0;
}
else{
Time.timeScale = 1;
}
Physics.autoSimulation = false;