Ejemplo n.º 1
0
 void cvText(string value, InfoData csv)
 {
     if (GameObject.Find("16_9_main/sideBar/Panel/container") != null)
     {
         createAndMove crt = GameObject.Find("16_9_main/sideBar/Panel/container").GetComponent <createAndMove>();
         crt.createNewBox(csv.name, value);
     }
 }
Ejemplo n.º 2
0
    void cvQuality(string value, InfoData csv)
    {
        string str   = "";
        string nom   = "";
        int    check = 0;

        nominal.Add(value.ToLower());
        nominal = nominal.OrderBy(val => val).ToList();
        for (int i = 0; i < nominal.Count; i++)
        {
            if (nom != nominal[i])
            {
                if (i - check > 0)
                {
                    str = str + nominal[i - 1] + " : " + (i - check) + "\t";
                }
                nom   = nominal[i];
                check = i;
            }
            //str = str + nominal[i];
        }
        str = str + nominal[nominal.Count - 1] + " : " + (nominal.Count - check);
        //Debug.Log(str);
        if (GameObject.Find("16_9_main/sideBar/Panel/container") != null)
        {
            createAndMove crt = GameObject.Find("16_9_main/sideBar/Panel/container").GetComponent <createAndMove>();
            if (GameObject.Find("16_9_main/sideBar/Panel/container/" + csv.name) == null)
            {
                crt.createNewBox(csv.name, str);
            }
            else
            {
                crt.deleteBox(csv.name);
                crt.createNewBox(csv.name, str);
            }
        }
    }