Ejemplo n.º 1
0
 public void Start()
 {
     bm = GameController.GetComponent <BlocksManager>();
     canvasGameOverModel.worldCamera = Camera.main;
     if (PlayerPrefs.HasKey(Key.GameIsSaved) == true)
     {
         Debug.Log("try load");
         bm.LoadBlocks();
     }
     else
     {
         Debug.Log("nothing to load");
         bm.GenerateNewLineOfBlocks();
     }
     bestScore   = ReadInteger(Key.BestScore);
     score       = ReadInteger(Key.LastScore);
     ballsAmount = ReadInteger(Key.BallAmount, InitalBallsAmount);
     updateBallsAmount();
     updateScore();
     updateBest();
 }