static OuyaSDK() { // attach our thread to the java vm; obviously the main thread is already attached but this is good practice.. AndroidJNI.AttachCurrentThread(); m_ouyaUnityPlugin = new OuyaUnityPlugin(UnityPlayer.currentActivity); }
static OuyaSDK() { if(Application.platform != RuntimePlatform.Android) return; // attach our thread to the java vm; obviously the main thread is already attached but this is good practice.. AndroidJNI.AttachCurrentThread(); m_ouyaUnityPlugin = new OuyaUnityPlugin(UnityPlayer.currentActivity); }