15/10/03 23:33:42.98 4mkrmEUh.net
Unity Adsをお使いの方いらっしゃいますか?
C#では
URLリンク(hiromart.com)
ここに記載されている通りにすれば広告は簡単に出ます。
でも、ゲーム自体のコードをjavascriptで記載してまして、バックボタンを押したらゲーム終了のコードに挟みたいと思っています。
―――――
//バックボタンが押されたらアプリ終了
if (Application.platform == RuntimePlatform.Android) {
if (Input.GetKey(KeyCode.Escape)) {
ここに広告を出そうと思っています。
Application.Quit();
return;
}
}
――――――
…なのですが、
そもそも
Advertisement.Initialize("*****");
と初期化した時点で
The best overload for the method 'UnityEngine.Advertisements.Advertisement.Initialize(String, boolean)'
is not compatible with the argument list '(String)'.
というエラーが出ます。
これが調べても調べてもわからず…
ご存知の方いらっしゃいましたらお教えくださいませ。