Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

die Animation is not playing

$
0
0
Animation for die is not playing just enemy is destroying y ? Given below script is attached to enemy when player shoots and health becomes 0 enemy should play die animation.but its not *function ApplyDemage(demage :int) { animation.CrossFade("die"); if(health==0) { animation.CrossFade("die"); Destroy(gameObject,2); } else { health -= demage; } }*

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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