public void UpdateCoinEarn() { innerAdsBanner.SetActive(false); coinAdsButton.gameObject.SetActive(false); earnCoinContainer.SetActive(true); adsCoinText.text = string.Format(LocalizedString.GetString("coinEarn"), currentAdsCoin); string rewardText = GameConfig.CheckFreeSkinFromAdsWatched(); if (!rewardText.Equals("")) { rewardtab.GetComponent <TabMovment>().SetTextInTab(rewardText); rewardtab.SetActive(true); } //do some coin animation here coinRewardParticle.SetActive(true); StartCoroutine(PlayCoinSound()); }
public void OnAdsFinishHeart() { FindObjectOfType <LifeController>().Revive(); pauseMenu.GetComponentInChildren <PauseMenu>().ResumeGame(true); Vector3 playerPosL = pc.transform.position - new Vector3(.5f, 0, 0); Vector3 playerPosR = pc.transform.position - new Vector3(.5f, 0, 0); pc.gameObject.SetActive(true); pc.ResetPlayerXPos(playerPosR, playerPosL); reviveMenu.SetActive(false); deathMenu.SetActive(false); string rewardText = GameConfig.CheckFreeSkinFromAdsWatched(); if (!rewardText.Equals("")) { rewardtab.GetComponent <TabMovment>().SetTextInTab(rewardText); rewardtab.SetActive(true); } }