Пример #1
0
 // Use this for initialization
 void Start()
 {
     //lives = 3;
     saveScore   = GetComponent <SaveHighScore> ();
     debryObject = DebryObject;
     saveScore.LoadHighScoreXML();
     highScoreText.text = "" + highScore;
     //Debug.Log (CameraRotate.rotateSpeed);
 }
Пример #2
0
 public void ResetLevel()
 {
     SceneManager.LoadScene("Test2");
     score = 0;
     lives = 3;
     numOfEnemysToCreate        = 2;
     numberOfObjects            = 0;
     scoreText.text             = "" + score;
     CameraRotate.rotateSpeed.z = 0.4f;
     saveScore.LoadHighScoreXML();
     highScoreText.text = "" + highScore;
     alive      = true;
     savedScore = false;
 }