public static void Initialize(string mediaId, int spotId, float refresh)
 {
     if (sInstance == null) {
         // Make a game object for observing.
         GameObject go = new GameObject("_AdBannerObserver");
         go.hideFlags = HideFlags.HideAndDontSave;
         DontDestroyOnLoad(go);
         // Add and initialize this component.
         sInstance = go.AddComponent<AdBannerObserver>();
         sInstance.mAdStirMediaId = mediaId;
         sInstance.mAdStirSpotId = spotId;
         sInstance.mRefreshTime = refresh;
     }
 }
 public static void Initialize(int spotID, string apiKey, float refresh)
 {
     if (sInstance == null) {
         // Make a game object for observing.
         GameObject go = new GameObject("_AdBannerObserver");
         go.hideFlags = HideFlags.HideAndDontSave;
         DontDestroyOnLoad(go);
         // Add and initialize this component.
         sInstance = go.AddComponent<AdBannerObserver>();
         sInstance.mNendSpotID = spotID;
         sInstance.mNendApiKey = apiKey;
         sInstance.mRefreshTime = refresh;
     }
 }
Exemple #3
0
 public static void Initialize(string publisherId, string testDeviceId, float refresh)
 {
     if (sInstance == null) {
         // Make a game object for observing.
         GameObject go = new GameObject("_AdBannerObserver");
         go.hideFlags = HideFlags.HideAndDontSave;
         DontDestroyOnLoad(go);
         // Add and initialize this component.
         sInstance = go.AddComponent<AdBannerObserver>();
         sInstance.mAdMobPublisherId = publisherId;
         sInstance.mAdMobTestDeviceId = testDeviceId;
         sInstance.mRefreshTime = refresh;
     }
 }
Exemple #4
0
 public static void Initialize(string publisherId, string testDeviceId, float refresh)
 {
     if (sInstance == null)
     {
         // Make a game object for observing.
         GameObject go = new GameObject("_AdBannerObserver");
         go.hideFlags = HideFlags.HideAndDontSave;
         DontDestroyOnLoad(go);
         // Add and initialize this component.
         sInstance = go.AddComponent <AdBannerObserver>();
         sInstance.mAdMobPublisherId  = publisherId;
         sInstance.mAdMobTestDeviceId = testDeviceId;
         sInstance.mRefreshTime       = refresh;
     }
 }
 public static void Initialize(int spotID, string apiKey, float refresh)
 {
     if (sInstance == null)
     {
         // Make a game object for observing.
         GameObject go = new GameObject("_AdBannerObserver");
         go.hideFlags = HideFlags.HideAndDontSave;
         DontDestroyOnLoad(go);
         // Add and initialize this component.
         sInstance              = go.AddComponent <AdBannerObserver>();
         sInstance.mNendSpotID  = spotID;
         sInstance.mNendApiKey  = apiKey;
         sInstance.mRefreshTime = refresh;
     }
 }
Exemple #6
0
 void Start()
 {
     AdBannerObserver.Initialize(spotID, apiKey, rotationTime);
 }