示例#1
0
    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);
        }
    }
示例#2
0
 private void SetTextColor(SQLiteDATA data, Color color)
 {
     sqliteContainer.GetChild((int)data).GetChild(1).GetComponent <TextMeshProUGUI> ().color = color;
 }
示例#3
0
 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;
 }