I currently have an inner class. Is it possible to convert it to a method?
public class AreaExceptions : List<Rect> { public bool Contains(Vector3 point) { foreach(var item in this) { if (item.Contains(point) return true; } return false; } } Even reformulate the question. Here is the code
List<Rect> Rects; public bool Contains(Vector3 point) { foreach(var item in Rects) { if (item.Contains(point) return true; } return false; } Will he perform the same function?