Esempio n. 1
0
        // Token: 0x06002913 RID: 10515 RVA: 0x000FB1CC File Offset: 0x000F95CC
        public static SafezoneBubble registerBubble(Vector3 origin, float radius)
        {
            SafezoneBubble safezoneBubble = new SafezoneBubble(origin, radius * radius);

            SafezoneManager.bubbles.Add(safezoneBubble);
            return(safezoneBubble);
        }
Esempio n. 2
0
 // Token: 0x06002912 RID: 10514 RVA: 0x000FB174 File Offset: 0x000F9574
 public static bool checkPointValid(Vector3 point)
 {
     for (int i = 0; i < SafezoneManager.bubbles.Count; i++)
     {
         SafezoneBubble safezoneBubble = SafezoneManager.bubbles[i];
         if ((safezoneBubble.origin - point).sqrMagnitude < safezoneBubble.sqrRadius)
         {
             return(false);
         }
     }
     return(true);
 }
Esempio n. 3
0
 // Token: 0x06002914 RID: 10516 RVA: 0x000FB1EF File Offset: 0x000F95EF
 public static void deregisterBubble(SafezoneBubble bubble)
 {
     SafezoneManager.bubbles.Remove(bubble);
 }