i want to reset my game but when i use the command SceneManager.LoadScene, it resets all my scripts, variables,...
i want to keep something dont load with scene so i use dontdestroyonload but it still loads T_T
i dont know what i wronged, help me pls!!!. sorry my bad English
void Dontdestroyonload()
{
DontDestroyOnLoad(obj);
}
↧