您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
27 行
648 B
27 行
648 B
//using System.Collections;
|
|
//using UnityEngine;
|
|
//using UnityEngine.Advertisements;
|
|
|
|
//public class MonetizationManager : MonoBehaviour
|
|
//{
|
|
|
|
// string m_GameId = "4170594";
|
|
// bool m_TestMode = true;
|
|
// string m_SurfacingId = "bannerPlacement";
|
|
|
|
// void Start()
|
|
// {
|
|
// Advertisement.Initialize(m_GameId, m_TestMode);
|
|
|
|
// StartCoroutine(ShowBannerWhenInitialized());
|
|
// }
|
|
|
|
// IEnumerator ShowBannerWhenInitialized()
|
|
// {
|
|
// while (!Advertisement.isInitialized)
|
|
// {
|
|
// yield return new WaitForSeconds(0.5f);
|
|
// }
|
|
// Advertisement.Banner.Show(m_SurfacingId);
|
|
// }
|
|
//}
|