public static void setInterstitialAdListener(FreestarInterstitialAdCallbackReceiver listener) { #if UNITY_IOS _setupWithListener(listener.ToString()); #endif #if UNITY_ANDROID interRec = listener; #endif }
public static void SetInterstitialAdListener(FreestarInterstitialAdCallbackReceiver listener) { #if UNITY_IOS GameObject obj = new GameObject(); interstitialMiddleman = obj.AddComponent <FreestarIOSInterstitialMessagePasser>(); interstitialMiddleman.receiver = listener; interstitialMiddleman.name = "FSTRMiddleInterstitial" + listener.ToString(); _setInterstitialListener(interstitialMiddleman.name); #endif #if UNITY_ANDROID interRec = listener; #endif }