So, I'm trying to figure out, how to determine whether or not my variable changing, is increasing it's value, or decreasing it. I know I could use a variable for this, to just store the old value, but it's not an option in this case.
int variable = 0;
variable = 1;
if(variable has increased) {
//Do Magic stuff
}
That's basicly, how I would think of doing it. I don't know if it's possible this way, without a container for the old value, but I thought there might be a C# Function, that could figure this out, from perhaps a Memory address?
I haven't got a clue on, what this method or technique is called either, so a heads up on that would be great too.