loicteixeira / gj-unity-api

[MOVED] Game Jolt API wrapper for Unity.
https://github.com/InfectedBytes/gj-unity-api/
MIT License
16 stars 13 forks source link

Call to GameJolt.API.Scores.Add (scoreValue, scoreText) is ambiguous #53

Closed loicteixeira closed 7 years ago

loicteixeira commented 9 years ago

Calling GameJolt.API.Scores.Add (scoreValue, scoreText); is ambiguous between GameJolt.API.Scores.Add(int, string, string=, int=, string=, System.Action<bool>=) and GameJolt.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.

loicteixeira commented 9 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).