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); } }
public void PlayGame() { SceneManager.LoadScene("GameScene"); LevelingScript.newGame(); }