i have a condition that control play animation of character as below
bool isFinishedAttack = true;
void Update(){
if(isFinishedAttack ){
isFinishedAttack = false;
getComponent<Animation>().Play("AttackBow");
StartCoroutine(attackCountDownTime(2f));
}
}
IEnumerator attackCountDownTime(float second){
yield return new WaitForSeconds (second);
if(isFinishedAttack == false)
isFinishedAttack = true;
}
my animation clip doesn’t play full lenght of it. how can i fix this problem ?
Thank!