To prevent users from manipulating game config through some 3rd party tool, we must secure the game config variables. One of the ways is to use the Anti Cheat ToolKit.
Please use Obscured type for all the possible variables. For example:
And call EncyptData() method at the end of SetUpGame() method.
publicvoidSetUpGame(IDictionary gamedata) { Dictionary<string,object> configData = new Dictionary<string, object>();foreach (DictionaryEntry d in gamedata) { configData.Add((string)d.Key,d.Value); } ---- // Secure your all config data like // ObscuredInt seed;ObscuredFloat speed; seed =int.Parse(configData["seed"].ToString()); speed =float.Parse(configData["speed"].ToString()); ----EncyptData();}