Unity3D C#: Two awesome classes and their source code
FloatBouncer.cs: Allows you to easily move between two values and check what the current value is, or what the percentage is.
TimeBouncer.cs: Allows you to easily use Time.deltaTime to move between two values over a period of time. You tell it when you want it move to the top or the bottom. Has plenty of events to listen for that make using it easy.
I’m using these to make things fade out over time, or appear at intervals.











