示例#1
0
 // Force the color to be set when becoming visible
 void OnBecameVisible()
 {
     VectorManager.SetOldDistance(m_objectNumber.i, -1);
     VectorManager.SetDistanceColor(m_objectNumber.i);
     if (!m_useLine)
     {
         return;
     }
     m_vectorLine.active = true;
 }
示例#2
0
 public void Setup(VectorLine line, bool m_useLine)
 {
     m_objectNumber = new RefInt(0);
     VectorManager.CheckDistanceSetup(transform, line, line.color, m_objectNumber);
     VectorManager.SetDistanceColor(m_objectNumber.i);
     if (m_useLine)              // Only if there are no Visibility scripts being used
     {
         this.m_useLine = true;
         m_vectorLine   = line;
     }
 }