void Awake()
 {
     shared  = this;
     _camera = GetComponent <Camera>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     // Collect.
     LineRendererCamera.AddDirectRenderer(this);
 }
        /**
         * You can just add up lines directly in the Inspector, or use same
         * drawing methods just like in `DirectLineRenderer`, but drawing
         * (each line drawn) gets cached here in `lines` collection, and gets
         * rendered each frame.
         */


        void Awake()
        {
            // Collect.
            LineRendererCamera.AddCachedRenderer(this);
        }