void Start() { #if UNITY_ANDROID // Attach our thread to the java vm; obviously the main thread is already attached but this is good practice.. if (Application.platform == RuntimePlatform.Android) { UnityEngine.AndroidJNI.AttachCurrentThread(); } #endif Dictionary <String, System.Object> connectFlags = new Dictionary <String, System.Object>(); // Connect to the Tapjoy servers. if (Application.platform == RuntimePlatform.Android) { // Enable logging connectFlags.Add(ENABLE_LOGGING_ANDROID, true); // If you are not using Tapjoy Managed currency, you would set your own user ID here. // connectFlags.Add("user_id", "A_UNIQUE_USER_ID"); // You can also set your event segmentation parameters here. // Dictionary<String, System.Object> segmentationParams = new Dictionary<String, System.Object>(); // segmentationParams.Add("iap", true); // connectFlags.Add("segmentation_params", segmentationParams); TapjoyPlugin.RequestTapjoyConnect("0143ffbe-3975-417d-b04f-6cf9b9fb30e6", // YOUR APP ID GOES HERE "DxEmLGJ6W3iiPxpup9rv", // YOUR SECRET KEY GOES HERE connectFlags); // YOUR CONNECT FLAGS } else if (Application.platform == RuntimePlatform.IPhonePlayer) { // Enable logging connectFlags.Add(ENABLE_LOGGING_IOS, true); // Add other connect flags connectFlags.Add("TJC_OPTION_COLLECT_MAC_ADDRESS", TapjoyPlugin.MacAddressOptionOffWithVersionCheck); // If you are not using Tapjoy Managed currency, you would set your own user ID here. // connectFlags.Add("TJC_OPTION_USER_ID", "A_UNIQUE_USER_ID"); // You can also set your event segmentation parameters here. // Dictionary<String, System.Object> segmentationParams = new Dictionary<String, System.Object>(); // segmentationParams.Add("iap", true); // connectFlags.Add("TJC_OPTION_SEGMENTATION_PARAMS", segmentationParams); TapjoyPlugin.RequestTapjoyConnect("0143ffbe-3975-417d-b04f-6cf9b9fb30e6", // YOUR APP ID GOES HERE "DxEmLGJ6W3iiPxpup9rv", // YOUR SECRET KEY GOES HERE connectFlags); // YOUR CONNECT FLAGS } }
// ---------------------------------------------------------------------- // TAPJOY - http://prime31.com/docs#comboVungle public void tapjoyInit() { // Enable logging. TapjoyPlugin.EnableLogging(true); // Connect to the Tapjoy servers. if (Application.platform == RuntimePlatform.Android) { TapjoyPlugin.RequestTapjoyConnect( AppConfigs.publisherIdTapjoyAndroid, AppConfigs.publisherSecretTapjoyAndroid); } else if (Application.platform == RuntimePlatform.IPhonePlayer) { Dictionary <String, String> dict = new Dictionary <String, String>(); dict.Add("TJC_OPTION_COLLECT_MAC_ADDRESS", TapjoyPlugin.MacAddressOptionOffWithVersionCheck); TapjoyPlugin.RequestTapjoyConnect( AppConfigs.publisherIdTapjoyiOS, AppConfigs.publisherSecretTapjoyiOS, dict); } }
public unsafe static long $Invoke69(long instance, long *args) { TapjoyPlugin.RequestTapjoyConnect(Marshal.PtrToStringUni(*(IntPtr *)args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1)), (Dictionary <string, string>)GCHandledObjects.GCHandleToObject(args[2])); return(-1L); }
public unsafe static long $Invoke67(long instance, long *args) { TapjoyPlugin.RequestTapjoyConnect(Marshal.PtrToStringUni(*(IntPtr *)args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1))); return(-1L); }