Hey,
I am making a survival game, and I’m working on a code to cut down trees. This is the part where the tree should play the animation of falling down, after it was cut 5 times :
if(TreeHealth == 0){
animation.Play("TreeFall");
}
The tree Health is 5, and after it is cut 5 times, the health will reach zero. At this moment my Tree will play the animation named TreeFall attached to the animation component of my tree. After being fallen down, I want it to stay as it lies down, but the animation start over again. I’ve changed the wrap mode to ‘‘once’’ already, but that doesn’t seem to work. Anyone has any suggestions?
Thank you in advance