Example #1
0
    public void showLab(int iNum)
    {
        _num = iNum;
        gameObject.SetActive(true);
        var idx   = _delt.getIdx(iNum);
        var color = iNum <= 4 ? "000" : "fff";

        lab.text     = "<color=#" + color + ">" + iNum + "</color>";
        lab.fontSize = iNum < 1024 ? 70 : 50;
        img.color    = FuncMgr.getColorFromHex(_delt.colors[idx]);
    }