Hey guys,
I’m building a plugin that affects the in game currency of a game.
Being a plug-in I can’t know what is the name of the class or variable of the “currency” of the specific game. Thus I’m assuming I need reflection.
I’ve tried :
coinsTotal = (int)(scriptWithCoins as typeof(scriptWithCoins)).GetField (“VariableName”).GetValue(typeof(int));
But that doesn’t work.