Esempio n. 1
0
    public void initShow()
    {
        if (ioMgr == null)
        {
            return;
        }
        var lLab1 = new List <Text> ()
        {
            labWin, labLose, labMinTime, labAvgTime, labRate,
            labCount, labMaxWinSteak, labCurWinSteak
        };
        var lLabSP = new List <Text> ()
        {
            labWinSP, labLoseSP, labMinTimeSP, labAvgTimeSP, labRateSP,
            labCountSP, labMaxWinSteakSP, labCurWinSteakSP
        };

        for (int j = 0; j < 2; j++)
        {
            var info = ioMgr.LoadFile(j);
            if (info == null)
            {
                info = new List <string> ();
            }
            var iL   = info.Count;
            var lLab = j == 0 ? lLab1 : lLabSP;
            for (int i = 0; i < lLab.Count; i++)
            {
                if (iL - 1 < i)
                {
                    lLab [i].text = "0";
                }
                else
                {
                    lLab [i].text = info [i];
                }
            }
            ;
        }
    }