UI update 02
This commit is contained in:
@@ -272,7 +272,7 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
|
||||
|
||||
private IEnumerator InitDataRoutine()
|
||||
{
|
||||
var rawData = Resources.LoadAll<AllyHero_SO>("so/ally");
|
||||
var rawData = RuntimeResourcesCache.LoadAllAllyHeroes();
|
||||
data_List = new List<AllyHero_SO>(rawData);
|
||||
|
||||
data_List.Sort((a, b) => a.ally_heroID.CompareTo(b.ally_heroID));
|
||||
@@ -318,7 +318,7 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
|
||||
button_Story.onClick.AddListener(
|
||||
() =>
|
||||
{
|
||||
gNotice.warning.display("此版本未开放该功能");
|
||||
gNotice.error.display("功能未开放");
|
||||
//Try_Open_Panel(ui_Panel_Story);
|
||||
});
|
||||
if (button_Idol != null)
|
||||
@@ -486,10 +486,19 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
|
||||
|
||||
IEnumerator LoadSelectSceneAsync()
|
||||
{
|
||||
if (gTransition.LoadScene(ui_Select_Music_Scene_Name, LoadSceneMode.Single))
|
||||
{
|
||||
while (gTransition.IsBusy)
|
||||
{
|
||||
yield return null;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
|
||||
AsyncOperation asyncLoad = SceneManager.LoadSceneAsync(ui_Select_Music_Scene_Name, LoadSceneMode.Single);
|
||||
|
||||
// Documentation text normalized.
|
||||
while (!asyncLoad.isDone)
|
||||
while (asyncLoad != null && !asyncLoad.isDone)
|
||||
{
|
||||
yield return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user