コード例 #1
0
ファイル: HeyzapAds.cs プロジェクト: raju-appxart/EggDrop
 /// <summary>
 /// Returns the remote data you've set on the Heyzap Dashboards, which will be a JSON dictionary in string format.
 /// </summary>
 public static string GetRemoteData()
 {
     #if UNITY_ANDROID
     return(HeyzapAdsAndroid.GetRemoteData());
     #elif UNITY_IPHONE && !UNITY_EDITOR
     return(HeyzapAdsIOS.GetRemoteData());
     #else
     return("{}");
     #endif
 }
コード例 #2
0
 /// <summary>
 /// Returns the remote data you've set on the Heyzap Dashboards, which will be a JSON dictionary in string format.
 /// </summary>
 public static string GetRemoteData()
 {
     #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
         #if UNITY_ANDROID
     return(HeyzapAdsAndroid.GetRemoteData());
         #elif UNITY_IPHONE
     return(HeyzapAdsIOS.GetRemoteData());
         #endif
     #else
     UnityEngine.Debug.LogWarning("Call received to retrieve remote data from the Heyzap SDK, but the SDK does not function in the editor. You must use a device/emulator to use the remote data feature.");
     return("{}");
     #endif
 }