Everything was working fine until I changed some stuff in my project settings to increase performance (I followed some random YouTube tutorial). The reason I think this is the reason for the issue is because I can’t even change the time in the project settings manually.
Here’s my code just in case I’m making a coding error:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class PuaseMenu : MonoBehaviour
{
[SerializeField] GameObject puaseMMenu;
public void puase()
{
puaseMMenu.SetActive(true);
Time.timeScale = 0f;
}
public void Resume()
{
puaseMMenu.SetActive(false);
Time.timeScale = 1f;
}
public void Home(int sceneID)
{
SceneManager.LoadScene(sceneID);
Time.timeScale = 1f;
}
}