Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Why does no animation play? [Javascript]

$
0
0
function Update () { if (Input.GetButtonDown("Attack")) { GetComponent.().Play("SwordSlash"); } } This code is attached to my weapon which is in turn attached to my FirstPersonCharacter when i press p, (the button assigned to 'Attack' in input) nothing happens? On my weapon i also have an a animation component that has 'SwordSlash' set as the animation. With this information, is it possible that one of you could tell me what the problem is with my script?

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>