private void SetTextColor(PlatformDATA data, Color color) { platformContainer.GetChild((int)data).GetChild(1).GetComponent <TextMeshProUGUI> ().color = color; }
private void SetText(PlatformDATA data, string info) { platformContainer.GetChild((int)data).GetChild(1).GetComponent <TextMeshProUGUI> ().text = info; platformContainer.GetChild((int)data).GetChild(1).GetComponent <TextMeshProUGUI> ().color = Color.white; platformContainer.GetChild((int)data).GetChild(1).GetComponent <TextMeshProUGUI> ().fontStyle = FontStyles.Normal; }