コード例 #1
0
ファイル: SceneBehaviour.cs プロジェクト: XaHDpE/pzl3d
 public void Awake()
 {
     if (loadSceneInputRegister != null)
     {
         sceneInputParams = loadSceneInputRegister;
     }
     loadSceneInputRegister = null; // the register has served its purpose, clear the state
 }
コード例 #2
0
ファイル: SceneBehaviour.cs プロジェクト: XaHDpE/pzl3d
 protected static void LoadMyScene(string sceneName, ISceneInputParams sceneInputParams, Action <ISceneOutputParams> callback)
 {
     loadSceneInputRegister    = sceneInputParams;
     sceneInputParams.Callback = callback;
     UnityEngine.SceneManagement.SceneManager.LoadScene(sceneName);
 }