public void walkCycle(int sp) { List <GameObject> patas = giantEnemyCrab.gibLegs(); foreach (GameObject p in patas) { animaçaoCL aCL = p.GetComponent <animaçaoCL>(); aCL.walkCycle(sp); } }
public void walking() { int sp = standby ? 0 : 1; List <GameObject> patas = gibLegs(); foreach (GameObject p in patas) { animaçaoCL aCL = p.GetComponent <animaçaoCL>(); aCL.walkCycle(sp); } }