public static void loadMyScene(MySceneParams sceneParams, System.Action<MySceneOutcome> callback) {
     MySceneBehaviour.loadSceneRegister = sceneParams;
     sceneParams.callback = callback;
     UnityEngine.SceneManagement.SceneManager.LoadScene("MyScene");
 }
 public void Awake() {
     if (loadSceneRegister != null) sceneParams = loadSceneRegister;
     loadSceneRegister = null; // the register has served its purpose, clear the state
 }