Unity tutorial - Making value adder hack for offline games

If you know C# basics, you will understand it.
In offline games, I basically looking for reward function and found codes that adds value into player data


And re-use the codes into mod menu with buttons to add values


Other similar codes from other games (I don’t tell what game) that adds coins and gems:

C#:
int num = TPlayerPrefs.GetEncryptGold((int)DHGlobal.g_CurrentPlayerIndex);
num += 20000;
TPlayerPrefs.SetEncryptGold((int)DHGlobal.g_CurrentPlayerIndex, num);
C#:
TPlayerPrefs.SetEncryptGem(TPlayerPrefs.GetEncryptGem() + 200);

Here are the codes:

Kommentarer