コード例 #1
0
 /// <summary>
 /// Load Level Async so we can show the
 /// </summary>
 /// <param name="_scene"></param>
 /// <param name="_delayAfterLoading"></param>
 /// <param name="_eventName"></param>
 private void LoadSceneAsync(PMR_SceneSetup.SCENES _scene, float _delayAfterLoading = 1f, string _eventName = "")
 {
     StartCoroutine(LoadingScreen((int)_scene, _delayAfterLoading, _eventName));
 }
コード例 #2
0
 /// <summary>
 /// Load Scene from anywhere (static method)
 /// </summary>
 /// <param name="_scene"></param>
 /// <param name="_delayAfterLoading"></param>
 /// <param name="_eventName"></param>
 public static void LoadScene(PMR_SceneSetup.SCENES _scene, float _delayAfterLoading = 1f, string _eventName = "")
 {
     Instance.LoadSceneAsync(_scene, _delayAfterLoading, _eventName);
 }