animations for pause menu

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

Also in C#: