Beispiel #1
0
    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);
    }
Beispiel #2
0
    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);
    }