- Home /
Pausing Animation
I get the feedback of "HEY" but the animation doesnt stop, does anyone know why?
if (Menu.GetComponent<Animation>()["Armature|PushTop"].normalizedTime > 0.7f)
{
Menu.GetComponent<Animation> ()["Armature|PushTop"].speed = 0;
Debug.Log("HEY");
}
I also start the animation with animation.Blend and it is on a different layer with a MixingTransform:
Menu.GetComponent<Animation> ()["Armature|PushTop"].layer = 6;
Menu.GetComponent<Animation> () ["Armature|PushTop"].AddMixingTransform (TopButton);
Comment