Well i just thought to try some other way than it was taught in the lesson to delete the gameStatus gameobject when we reset our. I wrote:-
public void LoadStatingScene()
{
SceneManager.LoadScene(0);
Destroy(FindObjectOfType<GameStatus>()); //tried to use my mind but...
}
I thought it will find the GameStatus gameobject and destroyed it…but nothing happened…instead something strange happened…every time I load the starting screen a new GameStatus get formed(this continues every time I reset the game)
Plz let me know why this dosen’t work and why does everytime a new GameStatus get formed…