void OnCollisionEnter(Collision collision) { Debug.Log(collision.gameObject.name); if (collision.gameObject.tag == "Laser") { uint score = 1; if (GameProperties.Difficulty > 0.75f) { score += 1; } if (GameProperties.Difficulty > 1.0f) { score += 1; } HighscoreScript.AddHighscore(score); Debug.Log("hit!"); Destroy(this.gameObject); } }