private void onSQLiteFail(SQLiteDATA startData) { int startIndex = (int)startData; int[] arr = Enumerable.Range(startIndex, sqliteContainer.childCount - startIndex).ToArray(); foreach (int index in arr) { SetText((SQLiteDATA)index, "Aborted"); SetTextColor((SQLiteDATA)index, warningColor); } }
private void SetTextColor(SQLiteDATA data, Color color) { sqliteContainer.GetChild((int)data).GetChild(1).GetComponent <TextMeshProUGUI> ().color = color; }
private void SetText(SQLiteDATA data, string info) { sqliteContainer.GetChild((int)data).GetChild(1).GetComponent <TextMeshProUGUI> ().text = info; sqliteContainer.GetChild((int)data).GetChild(1).GetComponent <TextMeshProUGUI> ().color = Color.white; sqliteContainer.GetChild((int)data).GetChild(1).GetComponent <TextMeshProUGUI> ().fontStyle = FontStyles.Normal; }