|
@@ -5,53 +5,53 @@ namespace DouYouSdk
|
|
{
|
|
{
|
|
public abstract class AbDouYouSDKIosHandler : MonoBehaviour
|
|
public abstract class AbDouYouSDKIosHandler : MonoBehaviour
|
|
{
|
|
{
|
|
- [DllImport("__Internal")]
|
|
|
|
- private static extern void ImportInitWithDigitMap(string gameId, string adId, bool shouldLog);
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint="__ImportInitWithDigitMap")]
|
|
|
|
+ private static extern void __ImportInitWithDigitMap(string gameId, string adId, bool shouldLog);
|
|
|
|
|
|
- [DllImport("__Internal")]
|
|
|
|
- private static extern void ImportLogin();
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint="__ImportLogin")]
|
|
|
|
+ private static extern void __ImportLogin();
|
|
|
|
|
|
- [DllImport("__Internal")]
|
|
|
|
- private static extern void ImportLogout();
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint="__ImportLogout")]
|
|
|
|
+ private static extern void __ImportLogout();
|
|
|
|
|
|
- [DllImport("__Internal")]
|
|
|
|
- private static extern void ImportPaymentWithJson(string paymentJson);
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint="__ImportPaymentWithJson")]
|
|
|
|
+ private static extern void __ImportPaymentWithJson(string paymentJson);
|
|
|
|
|
|
- [DllImport("__Internal")]
|
|
|
|
- private static extern void ImportRoleInfoWithJson(string roleJson);
|
|
|
|
|
|
+ [DllImport("__Internal", EntryPoint="__ImportRoleInfoWithJson")]
|
|
|
|
+ private static extern void __ImportRoleInfoWithJson(string roleJson);
|
|
|
|
|
|
//实例化sdk
|
|
//实例化sdk
|
|
public virtual void SDKInitWithDigitMap(string gameId, string adId, bool shouldLog)
|
|
public virtual void SDKInitWithDigitMap(string gameId, string adId, bool shouldLog)
|
|
{
|
|
{
|
|
- ImportInitWithDigitMap(gameId, adId, shouldLog);
|
|
|
|
|
|
+ __ImportInitWithDigitMap(gameId, adId, shouldLog);
|
|
Debug.Log($"SDKInitWithDigitMap:gameId:{gameId} adId:{adId} shouldLog:{shouldLog}");
|
|
Debug.Log($"SDKInitWithDigitMap:gameId:{gameId} adId:{adId} shouldLog:{shouldLog}");
|
|
}
|
|
}
|
|
|
|
|
|
//调起登陆
|
|
//调起登陆
|
|
public virtual void SDKLogin()
|
|
public virtual void SDKLogin()
|
|
{
|
|
{
|
|
- ImportLogin();
|
|
|
|
|
|
+ __ImportLogin();
|
|
Debug.Log($"SDKLogin");
|
|
Debug.Log($"SDKLogin");
|
|
}
|
|
}
|
|
|
|
|
|
//退出登陆
|
|
//退出登陆
|
|
public virtual void SDKLogout()
|
|
public virtual void SDKLogout()
|
|
{
|
|
{
|
|
- ImportLogout();
|
|
|
|
|
|
+ __ImportLogout();
|
|
Debug.Log($"SDKLogout");
|
|
Debug.Log($"SDKLogout");
|
|
}
|
|
}
|
|
|
|
|
|
//调起支付
|
|
//调起支付
|
|
public virtual void SdkPaymentWithJson(string paymentJson)
|
|
public virtual void SdkPaymentWithJson(string paymentJson)
|
|
{
|
|
{
|
|
- ImportPaymentWithJson(paymentJson);
|
|
|
|
|
|
+ __ImportPaymentWithJson(paymentJson);
|
|
Debug.Log($"SdkPaymentWithJson. paymentJson:{paymentJson}");
|
|
Debug.Log($"SdkPaymentWithJson. paymentJson:{paymentJson}");
|
|
}
|
|
}
|
|
|
|
|
|
//角色升级上报
|
|
//角色升级上报
|
|
public virtual void SDKRoleInfo(string roleJson)
|
|
public virtual void SDKRoleInfo(string roleJson)
|
|
{
|
|
{
|
|
- ImportRoleInfoWithJson(roleJson);
|
|
|
|
|
|
+ __ImportRoleInfoWithJson(roleJson);
|
|
Debug.Log($"SDKRoleInfo. roleJson:{roleJson}");
|
|
Debug.Log($"SDKRoleInfo. roleJson:{roleJson}");
|
|
}
|
|
}
|
|
|
|
|