//Countdown after player has died for the deathpanel to show up IEnumerator Countdown() { yield return(new WaitForSeconds(1f)); Audio.Instance.DeathAudioPlay(); Audio.Instance.GameTheme.Pause(); controlscript.TapControls.SetActive(false); char_specefic_EffectPopUps.Instance.DestroyCurrentEffects(); // Destroy(char_specefic_EffectPopUps.Instance.publicvfxtodestroy, 0f); GameObject.FindObjectOfType <CheckInternetConnection>().CheckNetwork(); //GameObject.FindObjectOfType<RewardedVideo>().RetryConnection(); Player_Spine.gameObject.SetActive(false); DeathPanel.gameObject.SetActive(true); turnThisOnBaby.SetActive(true); turnThisOnBaby2.SetActive(true); turnThisOnBaby3.SetActive(true); //HERE THE MONEY WAS ADDED BUT ITS NOW DISABLED shopmanagerscript.AddDiamond(0); }
public void DAILYGIFTCOINS() { shopmanagerScript.AddDiamond(400); }