I have a simple script that reloads my scene. The function is called by a button OnClick() event.
public void ReloadScene(){
SceneManager.LoadScene (SceneManager.GetActiveScene ().name);
}
This function should restart the current scene. It does what I expected it to, but with one problem: most scripts don't work.
The only scripts that work are the Audio Source, and another simple script that I have written. I get no errors when I just press "play".
I am using Unity 5.6.0b9 Personal.