In particualr, one set of methods I used extensively in past C++ projects is a generic single-variable animation system, which would let me make a call like:
animateVar(&someVar, startValue, endValue, animTime);
The function would add the reference to a list, and another function would regularly update the values, setting the variable's new values using the stored pointers.
I tried this in C# using ref, but there seems to be no way to store the reference to an integral type, meaning there's no way to update the variable.
How could I achieve this in C# without pointers?