// Start is called before the first frame update void Start() { interstitialAdsScript = FindObjectOfType <InterstitialAdsScript>(); if (isDead) { VidaAtual = 100; TomarDano(0); isDead = false; } }
// Initialize the Ads service: private void Awake() { Monetization.Initialize(gameId, testMode); if (instance == null) { instance = this; } else { Destroy(this); } DontDestroyOnLoad(this); }