技能主要更新,修复卡顿并加入动画,以及各种其他更新。
This commit is contained in:
@@ -23,10 +23,19 @@ public class back_toPreviousPage : MonoBehaviour
|
||||
|
||||
public void backto_PreviousPage()
|
||||
{
|
||||
SceneManager.LoadScene(scene_turn_to_previous_scene);
|
||||
StartCoroutine(LoadSceneAsync(scene_turn_to_previous_scene));
|
||||
}
|
||||
public void backto_homePage()
|
||||
{
|
||||
SceneManager.LoadScene(homePage_sceneName_to_turn);
|
||||
StartCoroutine(LoadSceneAsync(homePage_sceneName_to_turn));
|
||||
}
|
||||
|
||||
private IEnumerator LoadSceneAsync(string sceneName)
|
||||
{
|
||||
AsyncOperation asyncLoad = SceneManager.LoadSceneAsync(sceneName);
|
||||
while (!asyncLoad.isDone)
|
||||
{
|
||||
yield return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user