// Token: 0x06002E12 RID: 11794 RVA: 0x000AE450 File Offset: 0x000AC650 public static void Add(global::HUDIndicator hud) { if (hud.listIndex != -1) { return; } hud.listIndex = global::HUDIndicator.INDICATOR.activeIndicators.Count; global::HUDIndicator.INDICATOR.activeIndicators.Add(hud); }
// Token: 0x06002E06 RID: 11782 RVA: 0x000AE144 File Offset: 0x000AC344 internal static void Step() { global::HUDIndicator._stepTime = global::HUDIndicator.time; Camera main = Camera.main; if (main) { global::HUDIndicator.worldToCameraLocalMatrix = Matrix4x4.Scale(new Vector3(1f, 1f, -1f)) * main.worldToCameraMatrix; } int num = global::HUDIndicator.INDICATOR.activeIndicators.Count; for (int i = num - 1; i >= 0; i--) { if (!global::HUDIndicator.INDICATOR.activeIndicators[i].Continue()) { int j = i; do { global::HUDIndicator hudindicator = global::HUDIndicator.INDICATOR.activeIndicators[i]; global::HUDIndicator.INDICATOR.activeIndicators.RemoveAt(i); hudindicator.listIndex = -1; Object.Destroy(hudindicator.gameObject); num--; if (--i >= 0) { while (global::HUDIndicator.INDICATOR.activeIndicators[i].Continue()) { if (--i < 0) { goto IL_D6; } } j = i; } IL_D6 :; }while (j == i); while (j < num) { global::HUDIndicator.INDICATOR.activeIndicators[j].listIndex = j; j++; } break; } } }
// Token: 0x06002E13 RID: 11795 RVA: 0x000AE488 File Offset: 0x000AC688 public static void Remove(global::HUDIndicator hud) { if (hud.listIndex == -1) { return; } try { global::HUDIndicator.INDICATOR.activeIndicators.RemoveAt(hud.listIndex); int i = hud.listIndex; int count = global::HUDIndicator.INDICATOR.activeIndicators.Count; while (i < count) { global::HUDIndicator.INDICATOR.activeIndicators[i].listIndex = i; i++; } } finally { hud.listIndex = -1; } }
// Token: 0x06002E00 RID: 11776 RVA: 0x000ADF80 File Offset: 0x000AC180 private static global::HUDIndicator InstantiateIndicator(ref global::HUDIndicator.Target target, global::HUDIndicator prefab, global::HUDIndicator.PlacementSpace space, Vector3 position, float rotation) { global::UIAnchor uianchor = target.anchor; Quaternion quaternion = Quaternion.AngleAxis(rotation, Vector3.back); switch (space) { case global::HUDIndicator.PlacementSpace.World: { Camera camera = global::HUDIndicator.Target.camera; Vector3?vector = global::CameraFX.World2Screen(position); position = camera.ScreenToWorldPoint((vector == null) ? Vector3.zero : vector.Value); break; } case global::HUDIndicator.PlacementSpace.Screen: position = global::HUDIndicator.Target.camera.ScreenToWorldPoint(position); break; case global::HUDIndicator.PlacementSpace.Viewport: position = global::HUDIndicator.Target.camera.ViewportToWorldPoint(position); break; case global::HUDIndicator.PlacementSpace.Anchor: position = uianchor.transform.TransformPoint(position); quaternion = uianchor.transform.rotation * quaternion; break; } position.z = uianchor.transform.position.z; global::HUDIndicator hudindicator = (global::HUDIndicator)Object.Instantiate(prefab, position, quaternion); hudindicator.transform.parent = uianchor.transform; hudindicator.transform.localScale = Vector3.one; hudindicator.anchor = target.anchor; return(hudindicator); }
// Token: 0x06002E01 RID: 11777 RVA: 0x000AE09C File Offset: 0x000AC29C protected static global::HUDIndicator InstantiateIndicator(global::HUDIndicator.ScratchTarget target, global::HUDIndicator prefab, global::HUDIndicator.PlacementSpace space, Vector3 position, float rotation) { if (target == global::HUDIndicator.ScratchTarget.CenteredAuto) { return(global::HUDIndicator.InstantiateIndicator(ref global::HUDIndicator.CenterAuto, prefab, space, position, rotation)); } if (target != global::HUDIndicator.ScratchTarget.CenteredFixed3000Tall) { throw new ArgumentOutOfRangeException("target"); } return(global::HUDIndicator.InstantiateIndicator(ref global::HUDIndicator.CenterFixed3000Tall, prefab, space, position, rotation)); }
// Token: 0x06002E03 RID: 11779 RVA: 0x000AE0F8 File Offset: 0x000AC2F8 protected static global::HUDIndicator InstantiateIndicator(global::HUDIndicator.ScratchTarget target, global::HUDIndicator prefab) { return(global::HUDIndicator.InstantiateIndicator(target, prefab, global::HUDIndicator.PlacementSpace.Anchor, Vector3.zero, 0f)); }
// Token: 0x06002E02 RID: 11778 RVA: 0x000AE0E8 File Offset: 0x000AC2E8 protected static global::HUDIndicator InstantiateIndicator(global::HUDIndicator.ScratchTarget target, global::HUDIndicator prefab, global::HUDIndicator.PlacementSpace space, Vector3 position) { return(global::HUDIndicator.InstantiateIndicator(target, prefab, space, position, 0f)); }