I need to use a variable from the main script of a game which is the score variable
public int scoreCount; I need it in the main script because it will be needed to update the score when they get past a certain point.
I need to be able to access this variable.. so add or subtract from it i.e.
scoreCount++; however I am not sure how to do this, I have looked at tutorials and they make no sense for me.. could someone please explain it in more detail.
I also need to be able to use the
public void UpdateScore() function from the mainscript too, do I just do it the same way as the variable or is there a different method. Thank you.