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