Created
October 13, 2016 23:52
-
-
Save flushpot1125/0ea02351137df3906b8affef896841a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
public class TestObject1 : MonoBehaviour { | |
[SerializeField] | |
private Text text; | |
public void callStaticFunction(){ | |
AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
AndroidJavaClass plugin = new AndroidJavaClass("moduletest.test.com.nativeplugin.NativeMethod"); | |
plugin.CallStatic("staticFunction"); | |
} | |
public void onCallBackShowResult(string resultText){ | |
text.text = resultText; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment