隐私按钮安卓写法

This commit is contained in:
xiaohui.wang 2022-05-27 22:42:05 +08:00
parent 1ed73ed62a
commit cc2a6524f8
2 changed files with 10 additions and 14 deletions

View File

@ -4,15 +4,15 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Joypac;
//#if UNITY_ANDROID
//using JoyAdSigle = JoyPacCurrentcyAdSingle;
//#endif
public class SettingPopViewButton : MonoBehaviour
#if UNITY_ANDROID
using JoyAdSigle = JoyPacCurrentcyAdSingle;
#endif
public class SettingPopViewButton : JPButton
{
#if UNITY_ANDROID
private JoyPacCurrentcyAdSingle _currAdSigle = new JoyPacCurrentcyAdSingle();
private JoyAdSigle _currAdSigle;
#endif
public void OnClick()
public override void OnClick()
{
#if UNITY_IOS
JoypacAdClient.Instance.ShowSettingPopView();
@ -20,14 +20,10 @@ public class SettingPopViewButton : MonoBehaviour
#if ANDROID_GP
return;
#endif
_currAdSigle = new JoyAdSigle();
if (_currAdSigle != null)
{
Debug.Log("点击隐私协议");
Debug.Log("隐私界面");
_currAdSigle.showAgreementPermissionPop();
}
#endif
}

View File

@ -199,8 +199,8 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1682034354971069933}
m_MethodName: OnClick
- m_Target: {fileID: 0}
m_MethodName:
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}