Search Unity

Simple Animation Question

Discussion in '2D' started by Ravanok7, Dec 10, 2013.

  1. Ravanok7

    Ravanok7

    Joined:
    Jul 7, 2013
    Posts:
    8
    I have made my walk script and animation trees for this. My question is this. How would i play the Punch animation and then go back to the walk animation when the punch animation has finished?

    I attempted isplaying/Isplaying... it gives me an error
    MissingComponentException: There is no 'Animation' attached to the "Player" game object, but a script is trying to access it.
    You probably need to add a Animation to the game object "Player". Or your script needs to check if the component is attached before using it.
    Movement.Update () (at Assets/ROTP Beta Animations/Scripts/Movement.cs:32)



    .. Thank you in advance for your time.