Esempio n. 1
0
 public static void RemoveRenderDelegate(GL_RenderDelegate func)
 {
     renderDelegates.Remove(func);
 }
Esempio n. 2
0
    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);
        }
    }