IEnumerator MostraGameOver() { int Score = (int)GameController.score; yield return(new WaitForSeconds(2)); Time.timeScale = 0.0f; textGameOver.text = "You got: " + Score + " COINS"; canvasGameOver.SetActive(true); p.save.gold += Score; p.Salvar(); yield return(0); }
public void LoadGame() { p.Salvar(); Application.LoadLevel("CenaLoading"); }