using System.Collections.Generic; namespace UnityEngine.EventSystems { internal static class RaycasterManager { private static readonly List s_Raycasters = new List(); public static void AddRaycaster(BaseRaycaster baseRaycaster) { if (s_Raycasters.Contains(baseRaycaster)) return; s_Raycasters.Add(baseRaycaster); } public static List GetRaycasters() { return s_Raycasters; } public static void RemoveRaycasters(BaseRaycaster baseRaycaster) { if (!s_Raycasters.Contains(baseRaycaster)) return; s_Raycasters.Remove(baseRaycaster); } } }