Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

How can I verify the current ANIMATION'S frame for an if statement ????

Discussion in 'Animation' started by Ikon, Jun 19, 2014.

?

How can I verify the current frame for an if statement ????

Poll closed Jul 4, 2014.
  1. Solved

    0 vote(s)
    0.0%
  2. not solved

    0 vote(s)
    0.0%
  1. Ikon

    Ikon

    Joined:
    Jun 19, 2014
    Posts:
    2
    I tried :
    if (animaMe.animation["JumpB"].time >= 1.1f)
    {
    jumps=2;
    }
    JumpB is an animation inside an animator that is atached to the object. Jumps is just a integer variable.
    Is that the right way? What a I missing?