So I have a game based on 2 scenes. the Main Menu scene , and the Game Scene…
When you first start the game and click Play , everything is allright, the game behaves normally.
If i pause the game and go to the main menu scene, then click play the scene isn’t competely reseted…it enters a wierd state…
I do have some static variables : Audiosources, some floats ints …
I’ve also tried this, but it doesn’t help
void Awake()
{
if(instance == null)
instance = this;
}
void OnDestroy()
{
if(instance == this)
instance = null;
}