Initial Commit
This commit is contained in:
parent
53eb92e9af
commit
270ab7d11f
15341 changed files with 700234 additions and 0 deletions
|
@ -0,0 +1,29 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace UnityEngine.EventSystems
|
||||
{
|
||||
internal static class RaycasterManager
|
||||
{
|
||||
private static readonly List<BaseRaycaster> s_Raycasters = new List<BaseRaycaster>();
|
||||
|
||||
public static void AddRaycaster(BaseRaycaster baseRaycaster)
|
||||
{
|
||||
if (s_Raycasters.Contains(baseRaycaster))
|
||||
return;
|
||||
|
||||
s_Raycasters.Add(baseRaycaster);
|
||||
}
|
||||
|
||||
public static List<BaseRaycaster> GetRaycasters()
|
||||
{
|
||||
return s_Raycasters;
|
||||
}
|
||||
|
||||
public static void RemoveRaycasters(BaseRaycaster baseRaycaster)
|
||||
{
|
||||
if (!s_Raycasters.Contains(baseRaycaster))
|
||||
return;
|
||||
s_Raycasters.Remove(baseRaycaster);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue