I want to execute editor code in Unity editor and Android platform code in android devices. So that I partition my code like this but always getting Android platform code executed in Unity Editor too.
My Player Setting is running like this:
So I want to execute editor code in Unity Editor and Android code in Android Devices. This is my basic requirement. Please give some help in this.
EDIT: In other words, how can I say that it is actual android device or Unity editor running this??