public void initialization() { //for (int i = 0; i < ReadJson.NodeList.Count; i++) //{ // GameObject g = Instantiate(dot); // g.transform.SetParent(this.transform); // dots.Add(g.GetComponent<NImage>()); //} //foreach (var item in dots) //{ // item.initialization(); //} //CurrentDot = dots[CameraMover.instance.CurrentID]; //CurrentDot.ChangeColor(HighlightColor, .5f); if (instance == null) { instance = this; } theRect = ValueBarRectTransform.rect; }