Hello guys, I am having some issues with a Foreach loop and .Length in C#
void Update() {
foreach (GameObject gameObj in GameObject.FindGameObjectsWithTag("kills")) {
print (gameObj.Length);
}
}
it comes up with the error “Does not contain a definition for ‘Length’”
I have tried a few other ways for getting the number of “kills” but .Length will not work.
Thanks for any help guys