void FindBodyTarget() { foreach (Transform findTransform in botController.GetComponentsInChildren <Transform>()) { if (findTransform.name == "BodyController") { rotateTransform = findTransform; return; } } }
void FindBodyTarget() { foreach (Transform findTransform in botController.GetComponentsInChildren <Transform>()) { if (findTransform.name == "BodyController") { rotateTransform = findTransform; return; } } }