예제 #1
0
 private void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.tag == "Alvo")
     {
         ScoreScript.meteoreDestroyer++;
         ScoreScript.scoreValue += (1 * col.gameObject.GetComponent <MeteorScript>().meteor.point);
         LevelingScript.makeItHarder();
         Explode(col.gameObject.transform.position);
         Destroy(col.gameObject);
         AudioSource.PlayClipAtPoint(explosionAudio, this.gameObject.transform.position);
         Destroy(this.gameObject);
     }
 }
예제 #2
0
 public void PlayGame()
 {
     SceneManager.LoadScene("GameScene");
     LevelingScript.newGame();
 }