| | |
| | | using DG.Tweening; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | //目前没用,用的是SDK的 |
| | | public class RequestSecretWin : UIBase |
| | | { |
| | | // 组件引用 |
| | |
| | | protected override void InitComponent() |
| | | { |
| | | |
| | | Debug.LogError("InitComponent"); |
| | | base.InitComponent(); |
| | | // 初始化组件引用 |
| | | m_Confirm.SetListener(Confirm); |
| | | m_Cannel.SetListener(() => { |
| | | m_Cannel.SetListener(() => |
| | | { |
| | | Debug.LogError("Cannel"); |
| | | CloseWindow(); |
| | | #if UNITY_EDITOR |
| | |
| | | Application.Quit(); |
| | | #endif |
| | | }); |
| | | m_Fuwu.SetListener(()=> { |
| | | // TODO YYL |
| | | // WindowCenter.Instance.OpenFromLocal<GameAgeWarnWin>(1); |
| | | m_Fuwu.SetListener(() => |
| | | { |
| | | // GameAgeWarnWin.data = 1; |
| | | // UIManager.Instance.OpenWindow<GameAgeWarnWin>(); |
| | | }); |
| | | m_Yinsi.SetListener(() => { |
| | | // TODO YYL |
| | | // WindowCenter.Instance.OpenFromLocal<GameAgeWarnWin>(2); |
| | | m_Yinsi.SetListener(() => |
| | | { |
| | | // GameAgeWarnWin.data = 2; |
| | | // UIManager.Instance.OpenWindow<GameAgeWarnWin>(); |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | private void Confirm() |
| | | { |
| | | Debug.LogError("Confirm"); |
| | | //同意隐私 并申请权限 |
| | | SDKUtils.Instance.IsAgreeSecret = true; |
| | | LocalSave.SetBool("secretToggleStart5", true); |