We are using unity in college and I am completely newb to coding. I hope some of you can help me. Its a yes or no question and both buttons add only 1 score and carry it next to another scenes… its like this, 5 questions, 5 scenes and i want them to show the score ur total is ‘5’ at the end.
I saw this code somewhere but its incomplete and i need to add that score data through multiple scenes
private int score = 0;
public Text scoreText;
// Use this for initialization
void Start () {
score = 0;
scoreText.text = “0”;
}