Exemplo n.º 1
0
 static NatCorder()
 {
     // Create implementation for this platform
     Implementation =
     #if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
         new NatCorderOSX();
     #elif UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
         new NatCorderWindows();
     #elif UNITY_IOS
         new NatCorderiOS();
     #elif UNITY_ANDROID
         new NatCorderAndroid();
     #elif UNITY_WEBGL
         new NatCorderWebGL();
     #else
         new NatCorderNull();
     #endif
     // Stop recording if app is closed
     DispatchUtility.onQuit += () => {
         if (IsRecording)
         {
             StopRecording();
         }
     };
 }
Exemplo n.º 2
0
 static NatCorder()
 {
     // Create implementation for this platform
     Implementation =
     #if UNITY_EDITOR || UNITY_STANDALONE
         new NatCorderStandalone();
     #elif UNITY_IOS
         new NatCorderiOS();
     #elif UNITY_ANDROID
         new NatCorderAndroid();
     #else
         new NatCorderNull();
     #endif
     DispatchUtility.onQuit += () => { if (IsRecording)
                                       {
                                           StopRecording();
                                       }
     };                                                                    // Stop recording if app is closed
 }