Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created October 2, 2016 07:22
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/084d8d4a6cb21d80ee96273130d3a6ca to your computer and use it in GitHub Desktop.
Save flushpot1125/084d8d4a6cb21d80ee96273130d3a6ca to your computer and use it in GitHub Desktop.
package moduletest.test.com.nativeplugin;
import android.util.Log;
import com.unity3d.player.UnityPlayer;
public class NativeMethod {
public static void staticFunction(){
Log.e("[Unity Test]","Static Method has been called!");
UnityPlayer.UnitySendMessage("TestObject_Static","onCallBackShowResult","Static Method has been called!");
}
public void nonStaticFunction(){
Log.e("[Unity Test]","Non static Method has been called!");
UnityPlayer.UnitySendMessage("TestObject_NonStatic","onCallBackShowResult","Non static Method has been called!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment