private void OnTriggerEnter(Collider other) { if (other.name == player.name) { restart.PrintGoal(); } }