Example #1
0
 //绘制连线颜色
 public void drawLineColor()
 {
     for (int i = 0; i < lineGameObjectlist.Count; ++i)
     {
         Color temp = toLineColor(magic.getLineState(i));
         lineGameObjectlist[i].GetComponent <LineRenderer>().startColor = temp;
         lineGameObjectlist[i].GetComponent <LineRenderer>().endColor   = temp;
     }
 }