bool ReturnIfOut(ISpawnable s) { s.GetExtents(out Vector3 min, out Vector3 max); // check, if out of background if (Background.IsOut(s.Position, s.Position)) { // return to object pool s.Return(); return(true); } return(false); }