Using native Java code in Unity is a lot easier and simpler than it is to use native iOS code. The reason for this is reflection and the nice wrappers we can use in C#.
This time I’ll create the same sort of test plugin from the previous tutorial but with a precompiled iOS library. This option is ideal if you intend to create a plugin and sell it in the Asset store because your code will remain invisible to users.
Here’s a simple guide to writing your own Native Plugins for Unity mobile games. I’ll start with iOS plugins and the two main ways you can do it: writing a bridge to an native class or compiling a native static library.
A quick and simple Circle Pong game, build in Unity, with bits of Reactive Extensions… It can serve as the basis of a more complex puzzle/arcade type of game. In the game you must keep the bouncing ball inside the circle, by rotating the circular paddle which grows smaller with every hit.