void onTouchPlayButton(UIButton sender) { removeMainMenuPage(); removeAudioButton(); createLoadingScreen(); social.save(); StartCoroutine(loadGame()); }
void checkLoss() { if (!endGame && !godMode && healthPoints < 1) { endGame = disableInputs = true; // TODO: blocca lo spawner (come quando si mette in pausa) social.submitScore(scorePoints); social.checkZeroPointDeath(evolutionPoints); social.checkCompletedGames(); social.save(); StartCoroutine(endGameEffect()); } }