// Static static public void LoadScene(string sceneName, string loadScreenName = null) { UIBuilder.CloseAllPanel(); if (loadScreenName != null) { SceneManager.LoadScene("LoadScreen"); } SceneManager.LoadSceneAsync(sceneName); }
// Static static public void LoadScene(string sceneName, string loadScreenName = null) { UIBuilder.CloseAllPanel(); if (loadScreenName != null) { SceneManager.LoadScene("LoadScreen"); } SceneManager.LoadSceneAsync(sceneName); }