Ejemplo n.º 1
0
 public static void registerActionCallback(AnySDKType type, MonoBehaviour gameObject, string functionName)
 {
 #if UNITY_ANDROID
     if (mAndroidJavaClass == null)
     {
         mAndroidJavaClass = new AndroidJavaClass("com.anysdk.framework.unity.MessageHandle");
     }
     string gameObjectName = gameObject.gameObject.name;
     mAndroidJavaClass.CallStatic("registerActionResultCallback", new object[] { (int)type, gameObjectName, functionName });
 #endif
 }
Ejemplo n.º 2
0
        public static void registerActionCallback(AnySDKType type, MonoBehaviour gameObject, string functionName)
        {
            if (AnySDKUtil.mAndroidJavaClass == null)
            {
                AnySDKUtil.mAndroidJavaClass = new AndroidJavaClass("com.anysdk.framework.unity.MessageHandle");
            }
            string name = gameObject.gameObject.name;

            AnySDKUtil.mAndroidJavaClass.CallStatic("registerActionResultCallback", new object[]
            {
                (int)type,
                name,
                functionName
            });
        }
Ejemplo n.º 3
0
 public static void registerActionCallback(AnySDKType type,MonoBehaviour gameObject,string functionName)
 {
     #if UNITY_ANDROID
     if (mAndroidJavaClass == null)
     {
         mAndroidJavaClass = new AndroidJavaClass( "com.anysdk.framework.unity.MessageHandle" );
     }
     string gameObjectName = gameObject.gameObject.name;
     mAndroidJavaClass.CallStatic( "registerActionResultCallback", new object[]{(int)type,gameObjectName,functionName});
     #endif
 }