Closed loicteixeira closed 7 years ago
An easy fix would be to make the guest name a required parameter.
Or, the two methods could be merge. If a user is present, it adds a score for this user, otherwise it adds the score as the guest (but you would need another method to setup a guest name).
Calling
GameJolt.API.Scores.Add (scoreValue, scoreText);
is ambiguous betweenGameJolt.API.Scores.Add(int, string, string=, int=, string=, System.Action<bool>=)
andGameJolt.API.Scores.Add(int, string, int=, string=, System.Action<bool>=)
which makes it impossible to call omit all the optional parameters. Either the tableID or the guest name has to be passed.