Ejemplo n.º 1
0
 public void AddVector3(VarVector3 aPosition)
 {
     if (aPosition.CurrentValue != Vector3.zero)
     {
         LinePosition.Add(aPosition.CurrentValue);
         TargetLine.positionCount += 1;
         TargetLine.SetPosition(TargetLine.positionCount - 1, aPosition.CurrentValue);
     }
 }
Ejemplo n.º 2
0
 public void DrawVector3(VarVector3 aPosition)
 {
     if (aPosition.CurrentValue != Vector3.zero)
     {
         if (CurrentIndex >= 0)
         {
             LineCollections[CurrentIndex].GetComponent <LineController>().AddVector3(aPosition);
         }
     }
 }
Ejemplo n.º 3
0
 public void AddVector3(VarVector3 aPosition)
 {
     if (aPosition.CurrentValue != Vector3.zero)
     {
         GameObject newLine = GameObject.Instantiate(TargetPrefab, aPosition.CurrentValue, this.transform.rotation);
         if (newLine.GetComponent <LineController>() != null)
         {
             LineCollections.Add(newLine.GetComponent <LineController>());
             newLine.GetComponent <LineController>().AddVector3(aPosition);
             CurrentIndex = LineCollections.Count - 1;
         }
     }
 }