Hi staticVoidMan,
If I understood correctly, your problem is that "Datasource_GO" gameObject is multiplying every time you switch scenes as script has Dont Destroy onLoad method..
For this you can create a prefab of "**Datasource_GO**" with the script already assigned and instantiate in the first scene i.e your Menu with a check to see if it is already in scene or not.
if(!GameObject.Find("Datasource_GO"))
{
Instantiate (Datasource_Go);//Write correctly yourself
}
Same is to be done in your GamePlay scene, so that it does not start multiplying in gameplay scene.
I hope I am clear with my point.
↧