Check out example codes for "animations for pause menu". It will help you in understanding the concepts better.

Code Example 1

//use unscaled time for the animator update mode
//for Coroutines, use WaitForSecondsRealtime
//example
yield return new WaitForSecondsRealtime(0.05f);

Learn ReactJs, React Native from akashmittal.com