c# - How to play an attack animation plus adding a certain amount of damage -


i've been trying put 1 attack animation working , playing non-stop instead of playing when press left-shift.

enter image description here

enter image description here

enter image description here

for now, have.

set null state or idle in controller , make sure it's base state, create parameter trigger name attack, drag animation controller , transition base attack anim parameter attack , transition back.

in code on shift press write anim.settrigger ("attack");

also if u haven't referenced animation either draging in variable or getcomonent ref wont work :)


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -