void Start() { if (this != instance) { return; } BannerReklamAl(); InterstitialReklamAl(); ReklamScript.InsterstitialGoster(); }
void restartAt() { ReklamScript.yanmaSayisi++; if (ReklamScript.yanmaSayisi % 2 == 0) { ReklamScript.InsterstitialGoster(); } tekhak = true; PuanIslemleri.Puan = 0; SceneManager.LoadScene("Play", LoadSceneMode.Single); Time.timeScale = 1; }
void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(this); } else if (this != instance) { Destroy(gameObject); return; } }
private void Start() { OneSignal.StartInit("7994bb6b-6d39-4875-9107-6b4f6fc01d20") .HandleNotificationOpened(HandleNotificationOpened) .EndInit(); OneSignal.inFocusDisplayType = OneSignal.OSInFocusDisplayOption.Notification; ReklamScript.RewardedReklamAl(); ReklamScript.BannerReklamAl(); ReklamScript.InterstitialReklamAl(); Invoke("BannerAc", 0.5f); if (BeforeScore != 0) { CurrentScoreTextTMPro.text = BeforeScore.ToString(); score = BeforeScore; } }
private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(this); MobileAds.Initialize(uygulamaKimligi); BannerReklamYukle(); InterstitialReklamYukle(); RewardedReklamYukle(); } else if (this != instance) { Destroy(this); } }
// Start is called before the first frame update void Start() { float width = Screen.width; float height = Screen.height; Debug.Log(width); Debug.Log(height); AtesOzellik = FindObjectOfType <AtesOzellik>(); UcgenScript = FindObjectOfType <UcgenScript>(); Besgen = FindObjectOfType <Besgen>(); TopKontrol = FindObjectOfType <TopKontrol>(); BesgenScript = FindObjectOfType <BesgenScript>(); SkorManager = FindObjectOfType <SkorManager>(); ReklamScript = FindObjectOfType <ReklamScript>(); AudioSource = GetComponent <AudioSource>(); AtisSayisiText.text = "X" + atisSayisi.ToString(); baslangicPozisyonu = Camera.main.ViewportToWorldPoint(new Vector3(0, 0, 0)); bitisPozisyonu = Camera.main.ViewportToWorldPoint(new Vector3(1, 0, 0)); hareket = GetComponent <Rigidbody2D>(); }
void Update() { btnYenidenOyna.gameObject.SetActive(tekhak); btnYenidenOyna.gameObject.SetActive(ReklamScript.RewardedReklamHazirMi()); if (PuanIslemleri.moneyDeger >= 50) //power up Ucreti { btnShotSpeed.enabled = true; } else { btnShotSpeed.enabled = false; } if (PuanIslemleri.moneyDeger >= 50) //power up Ucreti { btnShotPower.enabled = true; } else { btnShotPower.enabled = false; } }
void BannerAc() { ReklamScript.BannerGoster(); }
public void ContinueGame() { ReklamScript.RewardedReklamGoster(odulFonksiyonu); }
public void Gameover() { ContinueButton.interactable = ReklamScript.RewardedReklamHazirMi(); ReklamScript.InsterstitialGoster(); StartCoroutine(GameoverCoroutine()); }
public void calistir() { ReklamScript.InsterstitialGoster(); }
void yenidenOyna() { ReklamScript.RewardedReklamGoster(odullendir); }