예제 #1
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;
     }
 }
예제 #2
0
 public static void VisibilityStaticSetup(VectorLine line, out RefInt objectNum)
 {
     if (vectorLines == null)
     {
         vectorLines   = new List <VectorLine>();
         objectNumbers = new List <RefInt>();
     }
     vectorLines.Add(line);
     objectNum = new RefInt(_arrayCount++);
     objectNumbers.Add(objectNum);
     VectorLine.LineManagerEnable();
 }
예제 #3
0
 public static void VisibilitySetup(Transform thisTransform, VectorLine line, out RefInt objectNum)
 {
     if (vectorLines2 == null)
     {
         vectorLines2   = new List <VectorLine>();
         objectNumbers2 = new List <RefInt>();
     }
     line.drawTransform = thisTransform;
     vectorLines2.Add(line);
     objectNum = new RefInt(_arrayCount2++);
     objectNumbers2.Add(objectNum);
     VectorLine.LineManagerEnable();
 }
예제 #4
0
 public static void CheckDistanceSetup(Transform thisTransform, VectorLine line, Color color, RefInt objectNum)
 {
     VectorLine.LineManagerEnable();
     if (vectorLines3 == null)
     {
         vectorLines3   = new List <VectorLine>();
         transforms3    = new List <Transform>();
         oldDistances   = new List <int>();
         colors         = new List <Color>();
         objectNumbers3 = new List <RefInt>();
         VectorLine.LineManagerCheckDistance();
     }
     transforms3.Add(thisTransform);
     vectorLines3.Add(line);
     oldDistances.Add(-1);
     colors.Add(color);
     objectNum.i = _arrayCount3++;
     objectNumbers3.Add(objectNum);
 }