I have a bit of my game which looks like this:
public static float Time;
float someValue = 123;
Interlocked.Exchange(ref Time, someValue);
I want to change Time to be a Uint32, however when I try to use UInt32 instead of float for the values it protests that the type must be a reference type. Float is not a reference type, so I know it's technically possible to do this with non reference types, is there any practical way to make this work with UInt32?