Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/jackmawer/JacksWorld. An abandoned mini-project that I created while learning to use Unity with networking.
Something went wrong. Try again.
2.4 kB · 93 lines
C#
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394#if UNITY_ANDROID || UNITY_IOS
namespace UnityEngine.Advertisements { using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices;
internal static class UnityAdsExternal {
private static UnityAdsPlatform impl; private static bool initialized = false;
private static UnityAdsPlatform getImpl() { if (!initialized) { initialized = true;#if UNITY_EDITOR impl = new UnityAdsEditor();#elif UNITY_ANDROID impl = new UnityAdsAndroid();#elif UNITY_IOS impl = new UnityAdsIos();#else impl = null;#endif }
return impl; }
public static void init (string gameId, bool testModeEnabled, string gameObjectName) { getImpl().init(gameId, testModeEnabled, gameObjectName); }
public static bool show (string zoneId, string rewardItemKey, string options) { return getImpl().show(zoneId, rewardItemKey, options); }
public static void hide () { getImpl().hide(); }
public static bool isSupported () { return getImpl().isSupported(); }
public static string getSDKVersion () { return getImpl().getSDKVersion(); }
public static bool canShowZone (string zone) { return getImpl().canShowZone(zone); }
public static bool hasMultipleRewardItems () { return getImpl().hasMultipleRewardItems(); }
public static string getRewardItemKeys () { return getImpl().getRewardItemKeys(); }
public static string getDefaultRewardItemKey () { return getImpl().getDefaultRewardItemKey(); }
public static string getCurrentRewardItemKey () { return getImpl().getCurrentRewardItemKey(); }
public static bool setRewardItemKey (string rewardItemKey) { return getImpl().setRewardItemKey(rewardItemKey); }
public static void setDefaultRewardItemAsRewardItem () { getImpl().setDefaultRewardItemAsRewardItem(); }
public static string getRewardItemDetailsWithKey (string rewardItemKey) { return getImpl().getRewardItemDetailsWithKey(rewardItemKey); }
public static string getRewardItemDetailsKeys () { return getImpl().getRewardItemDetailsKeys(); }
public static void setLogLevel(Advertisement.DebugLevel logLevel) { getImpl().setLogLevel(logLevel); } }}
#endif