Vector3 always returns (0,0,0) with GETComponent

Please see Using code tags properly for proper code formatting.

Anyway my guess is your list is probably referring to prefabs rather than the actual enemies in the scene. Also I don’t see the point of the currentPos variable since ti can just be retrieved through transform.position. This is wasteful.

1 Like