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.
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
Post a Comment