void LoadNextScene() { LoadPanelNextStage.SetActive(true); if (indexCurrentScene > 1) { UnityADSInterstitialClass.ShowInterstitial(); SaveLoad.saveLoad.previousStageScore = UXController.score; SaveLoad.saveLoad.indexCurrentSceneBeforeDie = indexCurrentScene + 1; SaveLoad.saveLoad.Save(); } }
public void GameOver() { isGameOver = true; //Se activa el flag "isGameOver". VirtualControl.SetActive(false); UnityADSInterstitialClass.ShowInterstitial(); if (spawnEnemiesClass.finalBossDestroyed) //Si el Boss Final es destruido... { Invoke("CongratulationsSetup", 2f); VirtualControl.SetActive(true); } else { gameoverGameobjectReference.SetActive(true); //Se visualiza el texto "Game Over". } }