Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created October 15, 2016 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/06c3059a3ce64b32a303a71b152e3909 to your computer and use it in GitHub Desktop.
Save flushpot1125/06c3059a3ce64b32a303a71b152e3909 to your computer and use it in GitHub Desktop.
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