Ejemplo n.º 1
0
    void OnEnable()
    {
        //Debug.Log("OnEnable!!");
        // must be called before trying to draw lines..
        lineMaterial = GL_Utils.CreateLineMaterial();

        SetUpdateData();
    }
        void OnRenderObject()
        {
            _DisplayCylinders = DisplayCylinders;


            GL.PushMatrix();

            if (lineMaterial == null)
            {
                lineMaterial = GL_Utils.CreateLineMaterial();
            }

            lineMaterial.SetPass(0);

            GL.Begin(GL.LINES);

            DisplayFreeWalkEdgesAndBlockedWalkEdges();
            DisplayGrid();

            GL.End();
            GL.PopMatrix();
        }
 void Awake()
 {
     // must be called before trying to draw lines..
     lineMaterial = GL_Utils.CreateLineMaterial();
 }