隐私按钮安卓写法

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

View File

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