hey, i got a game object that has a few animations into it,and i was woundering, how can i change the animations with a code/script, for example, when i press left/right/up/down i want it to go to the "walk" animation,and when theese keys are not pressed i want it to go to the "stand" animation, and im talking about doing this in the sprite manager,how can i do it?
*when i write PlayAnim(0); it gives me an error says: "Assets/Scripts Folder/Player's Scripts/spriteManageCall.js(3,9): BCE0005: Unknown identifier: 'PlayAnim'."
(im trying to controll the gameObject with a java script inside of it-a component that i added to the gameObject)
how to fix it?
thanks in advance