Ejemplo n.º 1
0
 private void Update()
 {
     if (m_instance == null)
     {
         m_instance      = this;
         m_renderObjects = new List <IGL>();
     }
 }
Ejemplo n.º 2
0
        private void Awake()
        {
            if (m_instance != null)
            {
                Debug.LogWarning("Another instance of GLLinesRenderer aleready exist");
            }
            m_instance = this;

            m_renderObjects = new List <IGL>();
        }
Ejemplo n.º 3
0
 private static void OnScriptsReloaded()
 {
     if (m_instance == null)
     {
         GLRenderer glRenderer = FindObjectOfType <GLRenderer>();
         if (glRenderer != null)
         {
             glRenderer.m_renderObjects = new List <IGL>();
             m_instance = glRenderer;
         }
     }
 }
Ejemplo n.º 4
0
 private void OnDestroy()
 {
     m_instance = null;
 }