コード例 #1
0
 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;
     }
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
ファイル: AdBannerObserver.cs プロジェクト: nyokumamu/unity
 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;
     }
 }
コード例 #4
0
ファイル: AdBannerObserver.cs プロジェクト: a250907922/TENVI
 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;
     }
 }
コード例 #5
0
 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;
     }
 }
コード例 #6
0
 void Start()
 {
     AdBannerObserver.Initialize(spotID, apiKey, rotationTime);
 }