Esempio n. 1
0
    //-------------------------------------------------------------------------
    static NativeAudioControl()
    {
#if UNITY_ANDROID
        mINativeAudioControl = new AndroidAudioControl();
        Debug.Log("AndroidAudioControl::");
#elif UNITY_IOS
        mINativeAudioControl = new IOSAudioControl();
        Debug.Log("IOSAudioControl::");
#else
        Debug.LogError("Do not supported on this platform. ");
#endif
    }
    //-------------------------------------------------------------------------
    static NativeAudioControl()
    {
#if UNITY_ANDROID
        mINativeAudioControl = new AndroidAudioControl();
        Debug.Log("AndroidAudioControl::");
#elif UNITY_IOS
        mINativeAudioControl = new IOSAudioControl();
        Debug.Log("IOSAudioControl::");
#else
        Debug.LogError("Do not supported on this platform. ");
#endif
    }