public void UpdateColorforHair(int index) { shopMgr.UpdateColor(index); for (int i = 0; i < generate.hairbtns.Count; i++) { Debug.Log(generate.hairbtns.Count); generate.hairbtns[i].transform.Find("clotheBtn").GetComponent <Image>().color = shopMgr.Getcolor(index); } }