Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Share
Go down
Member [Lv. 2]
Member [Lv. 2]
Posts : 11
Points : 1384
Rep : 3
Join date : 2014-10-29
View user profile

animation works but wont stop

on Wed Oct 29, 2014 12:04 pm
Hi,
I got my walking animation working but when i press w and release it it just keep looping and i just dont know what to do here is my script:

function Update()
{
if(Input.GetKeyDown("w"))
{
// Plays the walking animation - stops all other animations
animation.Play("WalkingAnime", PlayMode.StopAll);
}
}

and i have made it legacy etc but i just dont know what to do...
Back to top
Permissions in this forum:
You cannot reply to topics in this forum