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); } } }
void UpdateChild(UnityEngine.UI.Extensions.RadarPolygon child) { child.value = (float[])values.Clone(); child.segment = values.Length; }