diff --git a/Forest/Assets/Scripts/Framework/UI/UIManager.cs b/Forest/Assets/Scripts/Framework/UI/UIManager.cs index d535a94..5569ddf 100644 --- a/Forest/Assets/Scripts/Framework/UI/UIManager.cs +++ b/Forest/Assets/Scripts/Framework/UI/UIManager.cs @@ -118,7 +118,7 @@ namespace Framework.UI { window.WindowPath = path; window.uiWindowLayer = uiWindowLayer; - _windowsDic.Add(path, window); + _windowsDic.TryAdd(path, window); } else { diff --git a/Forest/Assets/Scripts/Gameplay/UI/StartPanel/UIMainPanelController.cs b/Forest/Assets/Scripts/Gameplay/UI/StartPanel/UIMainPanelController.cs index c7c2097..d49d4c3 100644 --- a/Forest/Assets/Scripts/Gameplay/UI/StartPanel/UIMainPanelController.cs +++ b/Forest/Assets/Scripts/Gameplay/UI/StartPanel/UIMainPanelController.cs @@ -58,7 +58,7 @@ public class UIMainPanelController : UIWindow private void Update() { - if (LoginManager.Instance.NeedSyncData && + /*if (LoginManager.Instance.NeedSyncData && (LoginManager.Instance.ShowLogin || LoginManager.Instance.IsLogin) && UnityEngine.PlayerPrefs.HasKey(LevelConstants.FirstLaunch)) { @@ -66,7 +66,7 @@ public class UIMainPanelController : UIWindow UIManager.Instance.OpenWindow(UIConstants.UISyncTip, UIManager.Instance.IsWindowStay(UIConstants.UISettingPanel)); - } + }*/ } private void OnDisable()