I have the same helper class used in the sample:
public enum Leaderboards
{
Main = 1,
}
public class MogadeHelper
{
//Your game key and game secret
private const string _gameKey = "4fd056d0563d8a3d9500005b";
private const string _secret = "6XAjSHn[D3r4N:SmIAE>u@n5fg";
private static readonly IDictionary<Leaderboards, string> _leaderboardLookup = new Dictionary<Leaderboards, string>
{
{Leaderboards.Main, "4fd0cdab563d8a027b000035"}
};
public static string LeaderboardId(Leaderboards leaderboard)
{
return _leaderboardLookup[leaderboard];
}
public static IMogadeClient CreateInstance()
{
//In your own game, when you are ready, REMOVE the ContectToTest to hit the production mogade server (instead of
testing.mogade.com)
//Also, if you are upgrading from the v1 library and you were using UserId (or not doing anything), you *must* change the UniqueIdStrategy to LegacyUserId
MogadeConfiguration.Configuration(c => c.UsingUniqueIdStrategy(UniqueIdStrategy.UserId));
return MogadeClient.Initialize(_gameKey, _secret);
}
by the way: what do you mean with "REMOVE the ContectToTest to hit the production mogade server" ?