| | |
| | | [SerializeField] Button ageWarn; |
| | | [SerializeField] Text verInfo; |
| | | |
| | | // [SerializeField] Text m_Banhao; |
| | | |
| | | string banhaoStr = ""; |
| | | protected override void InitComponent() |
| | | { |
| | | base.InitComponent(); |
| | |
| | | |
| | | m_CleanCache.SetListener(CleanCache); |
| | | |
| | | serverRead.SetListener(() => { |
| | | GameAgeWarnWin.data = 1; |
| | | UIManager.Instance.OpenWindow<GameAgeWarnWin>(); |
| | | serverRead.SetListener(() => |
| | | { |
| | | // GameAgeWarnWin.data = 1; |
| | | // UIManager.Instance.OpenWindow<GameAgeWarnWin>(); |
| | | SDKUtils.Instance.OpenUrl("https://res.xingwan001.com/storage/d1rhn239ao69cjnvqa9g"); |
| | | }); |
| | | |
| | | hideRead.SetListener(() => { |
| | | GameAgeWarnWin.data = 2; |
| | | UIManager.Instance.OpenWindow<GameAgeWarnWin>(); |
| | | hideRead.SetListener(() => |
| | | { |
| | | // GameAgeWarnWin.data = 2; |
| | | // UIManager.Instance.OpenWindow<GameAgeWarnWin>(); |
| | | SDKUtils.Instance.OpenUrl("https://res.xingwan001.com/storage/d1rhhuj9ao69cjnvqa90"); |
| | | }); |
| | | ageWarn.SetListener(() => |
| | | { |
| | |
| | | { |
| | | LocalSave.SetBool("secretToggleStart5", value); |
| | | }); |
| | | // banhaoStr = LoadConfig(); |
| | | } |
| | | |
| | | protected override void OnPreOpen() |
| | |
| | | { |
| | | SDKUtils.Instance.FreePlatformLogin(); |
| | | } |
| | | // m_Banhao.text = banhaoStr; |
| | | } |
| | | |
| | | protected override void OnOpenAnimationComplete() |
| | |
| | | Directory.Delete(dir, true); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | catch (System.Exception e) |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | public string LoadConfig() |
| | | { |
| | | string path = string.Empty; |
| | | #if UNITY_EDITOR |
| | | if (!AssetSource.isUseAssetBundle) |
| | | { |
| | | path = ResourcesPath.CONFIG_FODLER + "/banhao.txt"; |
| | | } |
| | | else |
| | | #endif |
| | | { |
| | | path = AssetVersionUtility.GetAssetFilePath($"config/banhao.txt"); |
| | | } |
| | | |
| | | return File.ReadAllText(path); |
| | | } |
| | | } |