public static void RemoveRenderDelegate(GL_RenderDelegate func) { renderDelegates.Remove(func); }
public static void AddRenderDelegate(GL_RenderDelegate func) { if (glRenderer == null) { glRenderer = Camera.main.gameObject.AddComponent<GLRenderer>(); } if (renderDelegates == null) { renderDelegates = new List<GL_RenderDelegate>(); } if (!renderDelegates.Contains(func)) { renderDelegates.Add(func); } }