示例#1
0
 public static void RemoveRaycasters(BaseRaycaster baseRaycaster)
 {
     if (!s_Raycasters.Contains(baseRaycaster))
     {
         return;
     }
     s_Raycasters.Remove(baseRaycaster);
 }
示例#2
0
        public static void AddRaycaster(BaseRaycaster baseRaycaster)
        {
            if (s_Raycasters.Contains(baseRaycaster))
            {
                return;
            }

            s_Raycasters.Add(baseRaycaster);
        }
示例#3
0
 public void Clear()
 {
     gameObject     = null;
     module         = null;
     distance       = 0;
     index          = 0;
     depth          = 0;
     sortingLayer   = 0;
     sortingOrder   = 0;
     worldNormal    = Vector3.up;
     worldPosition  = Vector3.zero;
     screenPosition = Vector2.zero;
 }