コード例 #1
0
ファイル: OuyaSDK.cs プロジェクト: zacitus/BallRacer
    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);
    }
コード例 #2
0
ファイル: OuyaSDK.cs プロジェクト: trexug/ouya-unity-plugin
    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);
    }