예제 #1
0
 public void StartGame()
 {
     ground.parallaxFactor = 120;
     clouds.parallaxFactor = 100;
     planeObject.SetActive(true);
     gameOverScreen.SetActive(false);
     gameUI.SetActive(true);
     cameraHolder.GetComponent <CameraFollow>().follow = true;
     ScoreManager.Instance.CurrentScore = 0;
     StartCoroutine(ZoomOutCamera());
     if (firstTimePlaying)    //Show Tutorial
     {
         firstTimePlaying = false;
         PlayerPrefs.SetInt("returningPlayer", 1);
         pauseButton.SetActive(false);
         tutorialUI.SetActive(true);
     }
     else
     {
         planeObject.GetComponent <Movement>().CanMove = true;
         pickupSpawner.StartSpawning();
         missileSpawner.StartSpawning();
     }
 }