| | |
| | | protected override void InitComponent() |
| | | { |
| | | |
| | | Debug.LogError("InitComponent"); |
| | | base.InitComponent(); |
| | | // 初始化组件引用 |
| | | m_Confirm.SetListener(Confirm); |
| | |
| | | #endif |
| | | }); |
| | | m_Fuwu.SetListener(()=> { |
| | | UIManager.Instance.OpenWindow<GameAgeWarnWin>().SetFunctionOrder(1); |
| | | GameAgeWarnWin.data = 1; |
| | | UIManager.Instance.OpenWindow<GameAgeWarnWin>(); |
| | | }); |
| | | m_Yinsi.SetListener(() => { |
| | | UIManager.Instance.OpenWindow<GameAgeWarnWin>().SetFunctionOrder(2); |
| | | GameAgeWarnWin.data = 2; |
| | | UIManager.Instance.OpenWindow<GameAgeWarnWin>(); |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | private void Confirm() |
| | | { |
| | | Debug.LogError("Confirm"); |
| | | //同意隐私 并申请权限 |
| | | SDKUtils.Instance.IsAgreeSecret = true; |
| | | LocalSave.SetBool("secretToggleStart5", true); |