You've already forked Commercialization.topon
update 1.1.25
This commit is contained in:
54
AnyThinkPlugin/AnyThinkAds/Platform/Android/ATMsgTools.cs
Normal file
54
AnyThinkPlugin/AnyThinkAds/Platform/Android/ATMsgTools.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
#if UNITY_ANDROID
|
||||
|
||||
public class ATMsgTools
|
||||
{
|
||||
private AndroidJavaObject _Plugin;
|
||||
|
||||
public ATMsgTools ()
|
||||
{
|
||||
try{
|
||||
if (Application.platform != RuntimePlatform.Android)
|
||||
return;
|
||||
|
||||
_Plugin = new AndroidJavaObject ("com.anythink.unitybridge.MsgTools");
|
||||
|
||||
}catch(System.Exception e)
|
||||
{
|
||||
System.Console.WriteLine("Exception caught: {0}", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void printLogI (string msg)
|
||||
{
|
||||
try{
|
||||
|
||||
_Plugin.Call ("printLogI",msg);
|
||||
}catch(System.Exception e)
|
||||
{
|
||||
System.Console.WriteLine("Exception caught: {0}", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void printMsg (string msg)
|
||||
{
|
||||
try{
|
||||
_Plugin.Call ("pirntMsg",msg);
|
||||
}catch(System.Exception e)
|
||||
{
|
||||
System.Console.WriteLine("Exception caught: {0}", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user