Hey so let me break it down for you i have Script A and Script B Script A is attached to GameObject A and made a prefab this belong to scene 1 Script B is attached to GameObject B and made a prefab but belongs to Scene 2, now if in runtime and i declare a bool to true in script 2 from script 1 but in scene 1 then load scene 2 the bool declared doesn’t change on scene 2 so nothing actually happens. Why is this happening?
Also this is how im getting a reference to script 2 from script 1
public GameObject ScriptTwo;
Then i drag the prefab containing script 2 in to it.
Code Format is C#