- Home /
Question by
jimmyismike · Jun 12, 2011 at 02:04 PM ·
animationtriggerreload
Animation trigger button
How do i set off a animation with a trigger? The animation is called "reload" with no "". And i want the r button to set it off.
Comment
Best Answer
Answer by Oliver Eberlei · Jun 12, 2011 at 02:12 PM
if( Input.GetKeyDown( KeyCode.R ) )
{
yourGameObject.animation.Play( "reload" );
}
Your answer
