public void _initPlugins() { FB.Init(OnInitComplete); _isEnabled = true; Debug.Log("C# _initPlugins"); _isInited = true; _flurryProxy = new NerdFlurry(); #if UNITY_ANDROID && !UNITY_EDITOR _flurryProxy.StartSession(Settings.instance.flurryAndroid); Debug.Log("C# CBBinding.init()"); #elif UNITY_IPHONE && !UNITY_EDITOR _flurryProxy.StartSession(Settings.instance.flurryIOS); #endif #if (UNITY_ANDROID || UNITY_IPHONE) && !UNITY_EDITOR PlayHavenManager.instance.OpenNotification(); #endif #if UNITY_ANDROID && !UNITY_EDITOR CBBinding.init(); #elif UNITY_IPHONE && !UNITY_EDITOR CBBinding.init(Settings.instance.chartboostID, Settings.instance.chartboostSignature); #endif CBBinding.cacheInterstitial(null); CBBinding.cacheMoreApps(); PlayHavenManager.instance.ContentPreloadRequest(Settings.instance.playhavenFullscreen); }
void Awake() { #if UNITY_ANDROID CBBinding.init("53f21e95c26ee458330317de", "9ab37c612b65f80243149d6fcebf64513792abe5"); //#elif UNITY_IPHONE //CBBinding.init("3333", "4444"); #endif }
void Awake() { #if UNITY_ANDROID CBBinding.init("1111", "2222"); #elif UNITY_IPHONE CBBinding.init("3333", "4444"); #endif }
void Awake() { #if UNITY_ANDROID CBBinding.init("53e988de89b0bb54c915b841", "2d13bde84275bb908d1acc64c0d8aae310061f26"); #elif UNITY_IPHONE CBBinding.init("3333", "4444"); #endif }
void OnApplicationPause(bool pause) { if (!pause && _isInited) { PlayHavenManager.instance.OpenNotification(); CBBinding.init(); } }
// Use this for initialization void Start() { #if UNITY_ANDROID CBBinding.init(); #endif CBBinding.cacheInterstitial(null); CBBinding.showInterstitial(null); }
void OnEnable() { // Initialize the Chartboost plugin #if UNITY_ANDROID // Replace these with your own Android app ID and signature from the Chartboost web portal CBBinding.init("53684a5689b0bb39b463ae06", "e0b9c61661fe85dcc4ae05106a244fa787f5d849"); #elif UNITY_IPHONE // Replace these with your own iOS app ID and signature from the Chartboost web portal CBBinding.init("4f21c409cd1cb2fb7000001b", "92e2de2fd7070327bdeb54c15a5295309c6fcd2d"); #endif }
void OnEnable() { // Initialize the Chartboost plugin #if UNITY_ANDROID // Remember to set the Android app ID and signature in the file `/Plugins/Android/res/values/strings.xml` CBBinding.init(); #elif UNITY_IPHONE // Replace these with your own app ID and signature from the Chartboost web portal CBBinding.init("4f21c409cd1cb2fb7000001b", "92e2de2fd7070327bdeb54c15a5295309c6fcd2d"); #endif }
void OnEnable() { // Initialize the Chartboost plugin #if UNITY_ANDROID // Replace these with your own Android app ID and signature from the Chartboost web portal CBBinding.init("4f7b433509b6025804000002", "dd2d41b69ac01b80f443f5b6cf06096d457f82bd"); #elif UNITY_IPHONE // Replace these with your own iOS app ID and signature from the Chartboost web portal CBBinding.init("4f21c409cd1cb2fb7000001b", "92e2de2fd7070327bdeb54c15a5295309c6fcd2d"); #endif }
void OnEnable() { // Initialize the Chartboost plugin #if UNITY_ANDROID // Replace these with your own Android app ID and signature from the Chartboost web portal CBBinding.init(charboostAppID_Android, charboostAppSignature_Android); Debug.Log("ChartboostPersistentObject => OnEnable() => CBBinding.init(" + charboostAppID_Android + ", " + charboostAppSignature_Android + ")"); #elif UNITY_IPHONE // Replace these with your own iOS app ID and signature from the Chartboost web portal CBBinding.init(charboostAppID_IOS, charboostAppSignature_IOS); Debug.Log("ChartboostPersistentObject => OnEnable() => CBBinding.init(" + charboostAppID_IOS + ", " + charboostAppSignature_IOS + ")"); #endif }
// Use this for initialization void Start() { Debug.Log("ChartboostPersistentObject => Start()"); #if UNITY_ANDROID CBBinding.init(charboostAppID_Android, charboostAppSignature_Android); Debug.Log("ChartboostPersistentObject => Start() => CBBinding.init(" + charboostAppID_Android + ", " + charboostAppSignature_Android + ") => CBBinding.cacheInterstitial(null)"); #elif UNITY_IPHONE CBBinding.init(charboostAppID_IOS, charboostAppSignature_IOS); Debug.Log("ChartboostPersistentObject => Start() => CBBinding.init(" + charboostAppID_IOS + ", " + charboostAppSignature_IOS + ") => CBBinding.cacheInterstitial(null)"); #endif //CBBinding.cacheInterstitial(null); //ShowChartboostAdd(); }
void OnEnable() { // Initialize the Chartboost plugin #if UNITY_ANDROID // Replace these with your own Android app ID and signature from the Chartboost web portal CBBinding.init("4f7b433509b6025804000002", "dd2d41b69ac01b80f443f5b6cf06096d457f82bd"); #elif UNITY_IPHONE // Replace these with your own iOS app ID and signature from the Chartboost web portal CBBinding.init("53B28105C26Ee40B38966A37", "f0af312cb37ba17eb8a2a65d6d6770fc7ce96368"); CBBinding.cacheInterstitial("Default"); CBBinding.showInterstitial("Default"); #endif }
void Awake() { if (GA_ADSUPPORT != null) { // only one ad support allowed per scene GA.LogWarning("Destroying dublicate GA_ADSUPPORT - only one is allowed per scene!"); Destroy(gameObject); return; } GA_ADSUPPORT = this; DontDestroyOnLoad(gameObject); if (GA.SettingsGA.Start_AlwaysShowAds) { EnableAds(); } SaveConditions(); // iAd if (GA.SettingsGA.IAD_enabled) { #if UNITY_IPHONE if (ADBannerView.IsAvailable(ADBannerView.Type.MediumRect) && iPhone.generation.ToString().StartsWith("iPad")) { _iAdBanner = new ADBannerView(GA.SettingsGA.IAD_type, GA.SettingsGA.IAD_layout); } else { _iAdBanner = new ADBannerView(ADBannerView.Type.Banner, GA.SettingsGA.IAD_layout); } if (GA.SettingsGA.IAD_layout == ADBannerView.Layout.Manual) { _iAdBanner.position = GA.SettingsGA.IAD_position; } ADBannerView.onBannerWasClicked += OnBannerClicked; ADBannerView.onBannerWasLoaded += OnBannerLoaded; #endif } // Charboost #if CB_ON if (GA.SettingsGA.CB_enabled) { GameObject go = new GameObject("ChartboostManager"); go.AddComponent <CBManager>(); #if UNITY_ANDROID || UNITY_IPHONE CBBinding.init(GA.SettingsGA.CB_appID, GA.SettingsGA.CB_appSig); CBManager.didDismissInterstitialEvent += OnDismissInterstitialEvent; CBManager.didCloseInterstitialEvent += OnCloseInterstitialEvent; CBManager.didClickInterstitialEvent += OnClickInterstitialEvent; CBManager.didShowInterstitialEvent += OnShowInterstitialEvent; #endif } #endif }