| | |
| | | |
| | | public void Login() |
| | | { |
| | | if (null == VersionConfig.config) |
| | | { |
| | | throw new System.Exception("VersionConfig is null when Login, game will pause here"); |
| | | } |
| | | |
| | | appidRecorder = appid.text; |
| | | serverIdRecorder = serverId.text; |
| | | accountRecorder = account.text; |
| | |
| | | |
| | | if (!string.IsNullOrEmpty(appid.text)) |
| | | { |
| | | bool needRestore = VersionConfig.Get().m_AppId != appid.text; |
| | | VersionConfig.Get().m_AppId = appid.text; |
| | | bool needRestore = VersionConfig.config.m_AppId != appid.text; |
| | | VersionConfig.config.m_AppId = appid.text; |
| | | #if UNITY_EDITOR |
| | | //debug登录后第二次启动默认恢复test |
| | | if (needRestore) |