Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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