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; } }
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(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; } }
void Start() { AdBannerObserver.Initialize(spotID, apiKey, rotationTime); }