Exercise 1. Class for helper functions
Create a new Script class for math helper functions and properties (do not add it to any GameObject).
Add this Remap
function there
Remap(float iMin, float iMax, float oMin, float oMax, float v)
{
float t = Mathf.InverseLerp(iMin, iMax, v);
return Mathf.Lerp(oMin, oMax, t);
}
Try to call the method from a GameObject!