public static void AddHUDRender(HUDBaseRender render) { if (render is HUDBloodRender) { m_staticRenderList.Add(render); } }
public static void DepthSort(ref List <HUDBaseRender> list) { for (int i = 0; i < list.Count - 1; i++) { for (int j = 0; j < list.Count - 1 - i; j++) { if (list[j].depth < list[j + 1].depth) { HUDBaseRender temp = list[j]; list[j] = list[j + 1]; list[j + 1] = temp; } } } }