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