private bool tryGetCloudAtPos(Vector3 pos, out PointCloudReferencer cloud) { if (pos.z == -1) { cloud = foragerCloud; return(true); } int frameID = (int)(pos.z / 2); if (frames.Count > frameID) { cloud = frames[frameID].beePointCloud; return(true); } cloud = null; return(false); }