I know you stated you solved the issue, but I believe the issue stems from GameObject.FindGameObjectsWithTag("Animobject") returning an array of GameObjects.
Therefore you can't access the GetComponent function directly from the results which in this case is an array of GameObjects.
You can...