Ejemplo n.º 1
0
        public void InitializeRenderer(bool destructLast = false)
        {
            if (destructLast && m_segmentSpawner != null)
            {
                m_segmentSpawner.Destroy();
                m_segmentSpawner = null;
            }

            m_segmentSpawner = new SegmentSpawner(GetComponent <Wire>(), @"Wire/WireSegment", @"Wire/WireSegmentBegin");
            m_segmentSpawner.Initialize(gameObject);
        }
Ejemplo n.º 2
0
        public void InitializeRenderer(bool destructLast = false)
        {
            if (m_segmentSpawner != null)
            {
                m_segmentSpawner.Destroy();
                m_segmentSpawner = null;
            }

            m_segmentSpawner = new SegmentSpawner(Cable,
                                                  @"Cable/CableSegment",
                                                  @"Cable/CableSegmentBegin");
            m_segmentSpawner.Initialize(gameObject);
        }