//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Wednesday, March 28, 2018
|
//--------------------------------------------------------
|
|
using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
using System.IO;
|
|
namespace vnxbqy.UI
|
{
|
|
public class RequestSecretWin : Window
|
{
|
[SerializeField] Button m_Confirm;
|
[SerializeField] Button m_Cannel;
|
[SerializeField] Button m_Fuwu;
|
[SerializeField] Button m_Yinsi;
|
|
#region Built-in
|
|
protected override void BindController()
|
{
|
m_Confirm.SetListener(Confirm);
|
m_Cannel.SetListener(() => {
|
Close();
|
#if UNITY_EDITOR
|
UnityEditor.EditorApplication.isPlaying = false;
|
#else
|
Application.Quit();
|
#endif
|
});
|
m_Fuwu.SetListener(()=> {
|
WindowCenter.Instance.OpenFromLocal<GameAgeWarnWin>(1);
|
});
|
m_Yinsi.SetListener(() => {
|
WindowCenter.Instance.OpenFromLocal<GameAgeWarnWin>(2);
|
});
|
}
|
|
protected override void AddListeners()
|
{
|
}
|
|
protected override void OnPreOpen()
|
{
|
}
|
|
protected override void OnAfterOpen()
|
{
|
}
|
|
protected override void OnPreClose()
|
{
|
}
|
|
protected override void OnAfterClose()
|
{
|
}
|
|
#endregion
|
|
|
|
private void Confirm()
|
{
|
//同意隐私 并申请权限
|
ynmbxxjUtil.Instance.IsAgreeSecret = true;
|
LocalSave.SetBool("secretToggleStart5", true);
|
ynmbxxjUtil.Instance.RequestAndroidPermissionStart();
|
Close();
|
}
|
}
|
|
}
|