Exemplo n.º 1
0
        // Token: 0x060028F3 RID: 10483 RVA: 0x000F9C54 File Offset: 0x000F8054
        public static OxygenBubble registerBubble(Transform origin, float radius)
        {
            OxygenBubble oxygenBubble = new OxygenBubble(origin, radius * radius);

            OxygenManager.bubbles.Add(oxygenBubble);
            return(oxygenBubble);
        }
Exemplo n.º 2
0
 // Token: 0x060028F2 RID: 10482 RVA: 0x000F9BE0 File Offset: 0x000F7FE0
 public static bool checkPointBreathable(Vector3 point)
 {
     for (int i = 0; i < OxygenManager.bubbles.Count; i++)
     {
         OxygenBubble oxygenBubble = OxygenManager.bubbles[i];
         if (!(oxygenBubble.origin == null))
         {
             if ((oxygenBubble.origin.position - point).sqrMagnitude < oxygenBubble.sqrRadius)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Exemplo n.º 3
0
 // Token: 0x060028F4 RID: 10484 RVA: 0x000F9C77 File Offset: 0x000F8077
 public static void deregisterBubble(OxygenBubble bubble)
 {
     OxygenManager.bubbles.Remove(bubble);
 }