public static void RemoveTarget(ICanvasRaycastTarget obj) { if (obj != null) { canvases.Remove(obj); } }
public static void AddTarget(ICanvasRaycastTarget obj) { if (obj != null) { canvases.Add(obj); } }
public static bool RemoveTarget(ICanvasRaycastTarget obj) { return(obj == null ? false : canvases.Remove(obj)); }
public static bool AddTarget(ICanvasRaycastTarget obj) { return(obj == null ? false : canvases.AddUnique(obj)); }