Animation in Pause Menus

Hi all,

I’ve implemented animated buttons for a pause menu, obviously the scene behind needs to be paused, so timescale = 0 was used. I’ve been able to continue the animations on the buttons however I am unable to change the active animation with CrossFade when paused.

Heres the code:

public void UpdateAnimationWhenPaused()
{
    Time.timeScale = 1;
    switch (m_State)
    {
        case ButtonState.Normal:
            WhenNormal();
            break;
        case ButtonState.Focused:
            WhenFocused();
            break;
        case ButtonState.Pressed:
            WhenPressed();
            break;
        case ButtonState.NonSelected:
            WhenNonSelected();
            break;
    }
    Time.timeScale = 0;
    if (animation.IsPlaying(m_NormalAnimName)) animation[m_NormalAnimName].time += Time.fixedDeltaTime;
    if (animation.IsPlaying(m_FocusedAnimName)) animation[m_FocusedAnimName].time += Time.fixedDeltaTime;
    if (animation.IsPlaying(m_PressedAnimName)) animation[m_PressedAnimName].time += Time.fixedDeltaTime;
    if (animation.IsPlaying(m_NonSelectedAnimName)) animation[m_NonSelectedAnimName].time += Time.fixedDeltaTime;
}

Is there some way to get this to work?

Thank you (in advance)