diff --git a/Assets/Framework/Tool/UITool/UIManager.cs b/Assets/Framework/Tool/UITool/UIManager.cs index 5e6cb6301..7e498d967 100644 --- a/Assets/Framework/Tool/UITool/UIManager.cs +++ b/Assets/Framework/Tool/UITool/UIManager.cs @@ -258,9 +258,9 @@ public class UIManager : MonoSingleton Destroy(obj); } - public void StopShowPanel(UIPanel type, object args, Action onShown, float YCtime) + public void StopShowPanel() { - StopCoroutine(CoShow(type, args, onShown, YCtime)); + StopAllCoroutines(); } private IEnumerator CoShow(UIPanel type, object args, Action onShown, float YCtime) { diff --git a/Assets/MyGame/Scripts/Manager/GameManager.cs b/Assets/MyGame/Scripts/Manager/GameManager.cs index d730aa25d..c03ec75ae 100644 --- a/Assets/MyGame/Scripts/Manager/GameManager.cs +++ b/Assets/MyGame/Scripts/Manager/GameManager.cs @@ -107,7 +107,7 @@ public class GameManager : MonoSingleton UIManager.Instance.ShowAsync(UIPanel.LoginPanel,null,null,28); btn_Skip.onClick.AddListener(() => { - UIManager.Instance.StopShowPanel(UIPanel.LoginPanel, null, null, 28); + UIManager.Instance.StopShowPanel(); UIManager.Instance.ShowAsync(UIPanel.LoginPanel, null, null, 0); v.LoadBar(100); });