Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created October 13, 2016 23:52
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/0ea02351137df3906b8affef896841a6 to your computer and use it in GitHub Desktop.
Save flushpot1125/0ea02351137df3906b8affef896841a6 to your computer and use it in GitHub Desktop.
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