コード例 #1
0
 void Update()
 {
     if (!values.SequenceEqual(prev))
     {
         prev = (float[])values.Clone();
         foreach (Transform c in this.transform)
         {
             UnityEngine.UI.Extensions.RadarPolygon child = c.GetComponent <UnityEngine.UI.Extensions.RadarPolygon>();
             UpdateChild(child);
         }
     }
 }
コード例 #2
0
 void UpdateChild(UnityEngine.UI.Extensions.RadarPolygon child)
 {
     child.value   = (float[])values.Clone();
     child.segment = values.Length;
 }