hellbound/Assets/Scripts/Managers/Statistics/UserAcquisition/UserAcquisition.cs

38 lines
949 B
C#
Raw Normal View History

2021-11-26 11:16:25 +03:00
using RND.SDK.UserAcquisitionSDK;
namespace RND.SDK
{
public static class UserAcquisition
{
private static IUserAcquisitionSDK _sdk = new NullUserAcquisitionSDK();
public static void Init()
{
#if RND_TENJIN
_sdk = new TenjinSDK();
#endif
_sdk.Init();
}
public static void SendEvent(string eventName)
{
_sdk.SendEvent(eventName);
}
public static void Transaction(string productId, string currencyCode, int quantity, double unitPrice,
string transactionId,
string receipt, string signature)
{
_sdk.Transaction(productId, currencyCode, quantity, unitPrice, transactionId, receipt, signature);
}
public static void Reconnect()
{
#if RND_TENJIN
var instance = Tenjin.getInstance(Settings.TENJIN_KEY);
instance.Connect();
#endif
}
}
}