Ejemplo n.º 1
0
 public void StartGame()
 {
     StartCoroutine(graphicsManager.breathBackground());
     ScoreManager.ResetScore();
     if (!Convert.ToBoolean(PlayerPrefs.GetInt(IS_TUTORIAL_COMPLETED)))
     {
         tutorialScript         = GetComponent <TutorialScript>();
         tutorialScript.enabled = true;
         isGameInProgress       = false;
         isTutorialInProgress   = true;
         currentShape           = ShapePool.PreChachedShapes[0];
         cubeVisualizer.RenderShape(currentShape.shapeMatrix);
         graphicsManager.ChangeShapeToRandomColor(cubeVisualizer.ShapeVisuals);
         timeRemainingUntilCollision = cubeVisualizer.calculateTimeUntilCollision();
         lastHeight = tower.Height;
     }
     else
     {
         SpawnShape();
     }
 }