À¯´ÏƼ ¾Öµå¸÷ Àß ÇÏ´Â Çü´Ôµé µµ¿òÁ» [6]

¡ã ¸Ç¹Ø ¡å
hanco
¾Æ¹ÙŸ/ÂÊÁö/±Û°Ë»ö

2021-12-28 00:17:02
0 0 6 232

¨Û Ãßõ  ¨á ´ÜÃàURL
¡è º¹»ç ÈÄ ºÙ¿©³ÖÀ¸¼¼¿ä.
 ±â±â¸¦ °¨ÁöÇÏ¿© ÃÖÀû URL ·Î º¸³»ÁÝ´Ï´Ù.
hanco
https://humoruniv.com/program8226 URL º¹»ç

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using GoogleMobileAds.Api;

public class replay : MonoBehaviour
{
private InterstitialAd interstitial;
public Canvas myCanvas;

private void RequestInterstitial£¨£©
{
#if UNITY_ANDROID
string adUnitId = "ca-app-pub-3940256099942544/1033173712";£¨¿©±â´Â Å×½ºÆ® ¾ÆÀ̵ðÁö¸¸ ºôµåÇÒ ¶§´Â ½ÇÁ¦ ¾ÆÀ̵ð »ç¿ëÇÔ£©
#elif UNITY_IPHONE
string adUnitId = "ca-app-pub-3940256099942544/4411468910";
#else
string adUnitId = "unexpected_platform";
#endif

// Initialize an InterstitialAd.
this.interstitial = new InterstitialAd£¨adUnitId£©;
// Called when the ad is closed.
this.interstitial.OnAdClosed += HandleOnAdClosed;
// Create an empty ad request.
AdRequest request = new AdRequest.Builder£¨£©.Build£¨£©;
// Load the interstitial with the request.
this.interstitial.LoadAd£¨request£©;
}
public void Start£¨£© {
// RequestInterstitial£¨£©;
}
public void ReplayGame£¨£©
{
if £¨IAPScript.noad == 1£©
{
SceneManager.LoadScene£¨"Ready"£©;
//ÀÌ Á¶°Ç¹®Àº ÀÎ¾Û °áÁ¦¸¦ ÇßÀ» ¶§ ±¤°í°¡ ³ª¿ÀÁö ¾Ê°Ô ÇÏ·Á°í § ÄÚµåÀÓ
}
else if £¨BottomBanner.ad >= 3£©
{
//BottomBanner.ad´Â °ÔÀÓ Ç÷¹ÀÌÇÑ È½¼ö ÀúÀåÇÑ º¯¼öÀÓ
RequestInterstitial£¨£©;

StartCoroutine£¨showInterstitial£¨£©£©;

IEnumerator showInterstitial£¨£©
{
while£¨!this.interstitial.IsLoaded£¨£©£©
{
yield return new WaitForSeconds£¨0.2f£©;
}
this.interstitial.Show£¨£©;
myCanvas.sortingOrder = -1;
}


}
else{
SceneManager.LoadScene£¨"Ready"£©;
}
}


public void HandleOnAdClosed£¨object sender, System.EventArgs args£©
{
SceneManager.LoadScene£¨"Ready"£©;
}
}

ÀÌ·¸°Ô Äڵ带 ®½À´Ï´Ù. ´Ù½Ã ½ÃÀÛÇÏ´Â ¹öưÀ» ´©¸¦ ¶§ Ç÷¹ÀÌ È½¼ö°¡ 3ȸ ÀÌ»óÀÏ ¶§¸¶´Ù ±¤°í¸¦ º¸¿©ÁÖ°Ô ¸¸µé¾ú´Âµ¥¿ä À¯´ÏƼ ³»¿¡¼­´Â Àß ÀÛµ¿Çϴµ¥
ÀÌ»óÇÏ°Ô ¾Û ºôµåÇÏ°í ½ÇÇàÇϸé Àü¸é±¤°í°¡ ¾È ³ª¿È´Ï´Ù. ¹°·Ð ¾Öµå¸÷ÀÌ ºôµå ÈÄ ½Ã°£ÀÌ Áö³ª¾ß ³ª¿À±â´Â ÇÏÁö¸¸ °°Àº ¾Û¿¡ ÀÖ´Â ¹è³Ê±¤°í´Â Àß ³ª¿Í¼­ Ȥ½Ã Äڵ忡 ÀÌ»óÀÌ Àִ°¡ ÇØ¼­ ¿©±â¿¡ ¿Ã·Áº¾´Ï´Ù.

Áú¹®¿¡ ´äº¯Çϱâ

¨Û °Ô ½Ã ¹°    Ãß Ãµ ÇÏ ±â
  ·Î±×ÀÎ ¾øÀÌ Ãßõ°¡´ÉÇÕ´Ï´Ù.
ÃßõµÇ¾ú½À´Ï´Ù.
¨Û Ãßõ   ¨ä ¹Ý´ë   ¨Þ ´ä±Û   ¢Ç ¸ñ·Ï
¡ç µÚ·Î   ¡è ¸ÇÀ§   ¡é ¸Ç¹Ø   ¨· ½Å°í   ¢½ ½ºÅ©·¦
¡ç µÚ·Î   ¡è ¸ÇÀ§   ¡é ¸Ç¹Ø   ¨· ½Å°í   ¢½ ½ºÅ©·¦
´ä±Û ÀÛ¼ºÇϱâ (·Î±×ÀÎ ÇÊ¿ä)
·Î±×ÀÎ   ¸ÞÀÎ   »çÀÌÆ®¸Ê   PCÈ­¸é