We don’t know what ‘GetClosestObject’ expects as a paremeter. This method is not defined for us.
If you want to take a collection of objects, and get a new enumerable collection of objects that are fields of the objects in the first collection. Try linq:
var allCastersTransforms = (from go in Globals.allCasters select go.transform);
Yeah I ended up renaming it. That was dumb of me to make it take transforms.
Thanks to lordofduct’s solution though. It’ll come up handy in the future.