Highscore.PostScore(string,int) is inaccessible due to its protection level

I’ve seen this question here a million times, and I’ve looked over every answer, but I just can’t seem to get it. Here is my code:

	IEnumerator PostScore(string name, int score)
	{
		string _name = name;
		int _score = score;
		
		string hash = Md5Sum(_name + _score + secretKey).ToLower();
		
		WWWForm form = new WWWForm();
		form.AddField("name",_name);
		form.AddField("score",_score);
		form.AddField("hash",hash);
		
		WWW www = new WWW(PostScoreUrl,form);
		WindowTitel = "Wait";
		yield return www;
		
    	if(www.text == "done") 
    	{
       		StartCoroutine("GetScore");
    	}
		else 
		{
			print("There was an error posting the high score: " + www.error);
			WindowTitel = "There was an error posting the high score";
		}
	}

And my error is:

Assets/MyScriptBridge.cs(46,50): error
CS0122: `Highscore.PostScore(string,
int)’ is inaccessible due to its
protection level

My biggest thing is that I am trying to pass two parameters using SendMessage() through playmaker. Since (of course) I cannot use more than one parameter, i’ve set up a “bridge” to handle them. Bridge is set with the name string and score int and passed on to this highscore script.

In C# class members default to private.

If you wish to make them accessible to code running in other classes then you must explicitly declare them public.

In your case:

    public IEnumerator PostScore(string name, int score)
    {
        // ...
    }