Created
October 15, 2016 23:55
-
-
Save flushpot1125/06c3059a3ce64b32a303a71b152e3909 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 TestObject2 : MonoBehaviour { | |
[SerializeField] | |
private Text text; | |
public void callNonStaticFunction(){ | |
AndroidJavaObject plugin = new AndroidJavaObject("moduletest.test.com.nativeplugin.NativeMethod"); | |
plugin.Call("nonStaticFunction"); | |
} | |
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