Comment mettre en pause votre Unity de jeu
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;