public static void Initialize(params Mobile [] mobileOptions) { mobileOptions.ToList().ForEach(option => { switch (option) { case Mobile.Advertisement: EaAdvertisement.Initialize(); break; case Mobile.Leaderboard: EaSocial.Instance.Initialize(); break; } }); }
public static void Initialize() { if (initalized) { return; } initalized = true; if (EaAd.eaDebug) { Debug.Log("EaAdvetisement initialized!".color("0000FF")); } EaAd = Resources.Load <EaAdvertisement> ("EaAdvertisement"); CreateBanner(out bannerTopAd, GetBanner(AdPosition.Top), AdPosition.Top); CreateBanner(out bannerBottomAd, GetBanner(AdPosition.Bottom), AdPosition.Bottom); CreateInterstitial(); }