UImanager show方法会产生多余的HomeController

This commit is contained in:
lishuo committed 2022-06-01 19:49:15 +08:00
1 parent 154252e3c3
commit 71c9907c89
1 file changed
+1 -1
+1 -1
View File
@@ -747,7 +747,7 @@ public class UIManager : MonoBehaviour
}
if (UIManager.Instance.MainPanel != null && parent == UIManager.Instance.MainPanel)
{
App.currentPageIsHome = panelToShow.Equals(UIManager.Instance.HomePanel);
App.currentPageIsHome = panelToShow.GetType().Name.Equals("HomeController");
}
if (modal)