private IEnumerator runLegMovement(){
foreach (Transform child in transform){
if (child.gameObject.name == "PopOffSpot") continue;
currentlyAnimating = true;
if(child.gameObject.name != "bossHead"){
yield return new WaitForSeconds(.05f);
child.gameObject.GetComponent().SetBool("Working" ,true);
child.gameObject.GetComponent().playAnimation();
}
}
currentlyAnimating = false;
}

Leave a Reply