Exemple #1
0
 public static void OpenURL(string URL, DisplayOptions displayOptions)
 {
             #if UNITY_IOS && !UNITY_EDITOR
     iOSInAppBrowser.OpenURL(URL, displayOptions);
             #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidInAppBrowser.OpenURL(URL, displayOptions);
             #endif
 }
Exemple #2
0
 public static void OpenLocalFile(string filePath, DisplayOptions displayOptions)
 {
             #if UNITY_IOS && !UNITY_EDITOR
     var path = InAppBrowser.PathCombine(Application.streamingAssetsPath, filePath);
     iOSInAppBrowser.OpenURL(path, displayOptions);
             #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidInAppBrowser.OpenURL(filePath, displayOptions);
             #endif
 }