示例#1
0
 public static void RemoveTarget(ICanvasRaycastTarget obj)
 {
     if (obj != null)
     {
         canvases.Remove(obj);
     }
 }
示例#2
0
 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));
 }