I am making a survival game. The player have to at least score 500 point or more and if the player don’t score at 500 points the level restart. How do I script that in c sharp.
private int score;
public void AddToScore (int addedAmount){
score += addedAmount;
}
public bool CheckScoreAmount (){
bool canContinue;
if(score < 500){
canContinue = false;
} else {
canContinue = true;
}
}