Score system in C# [fixed]

EDIT:

It’s fixed.

Add an OnGUI function to overlay your score or list on the screen using something like GUI.Label like this:

at the top of scope add this:

  int score = 0;
  string score_txt;
  public Rect ScorePos;
  public GUIStyle ScoreStyle; 
  void OnGUI()
  {
      GUI.Label(ScorePos, score_txt, ScoreStyle);
     
      OR

     GUI.Label(ScorePos, score.ToString(), ScoreStyle);

  }