private void animationDone(){
if(currentlyRunning == null && animationOnly != null){
animator.SetBool(animationOnly, false);
if(health == 0){
setAdditionalParameters();
dieThisWay(animationOnly);
}
animationOnly = null;
}
}

Leave a Reply