I have 2 scenes in my game. A main home screen with a single button Start which clicking takes you to the other scene, and a scene with the game.
For some reason, Update()
is being called on the 2nd scene even tho it hasn't been loaded yet.
public class StartClick : MonoBehaviour {
public Button button;
void Start() {
button.onClick.AddListener(() => {
SceneManager.LoadScene(1);
});
}
}
Update()
being called on a scene that's not even loaded yet – A-Android UCG