Created
October 2, 2016 07:22
-
-
Save flushpot1125/084d8d4a6cb21d80ee96273130d3a6ca 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
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