Пример #1
0
            public void setInfor(a3_mapChangeLine.itemLineData ild)
            {
                this.toggleRoot.isOn = ild.isCurrentLine;
                string strLineType      = this.getStrLineType(ild.ilt);
                string strLineNum       = this.getStrLineNum(ild.lineNum);
                string strLineStateType = this.getStrLineStateType(ild.ilst);

                this._line        = ild.lineNum;
                this.txtInfo.text = string.Format(this.strLine, strLineType, strLineNum, strLineStateType);
            }
Пример #2
0
            public itemLine(a3_mapChangeLine.itemLineData ild) : base(ild.trans)
            {
                this.toggleRoot      = ild.trans.GetComponent <Toggle>();
                this.toggleRoot.isOn = ild.isCurrentLine;
                this.toggleRoot.onValueChanged.AddListener(new UnityAction <bool>(this.onThisClick));
                this.txtInfo = base.getComponentByPath <Text>("Label");
                string strLineType      = this.getStrLineType(ild.ilt);
                string strLineNum       = this.getStrLineNum(ild.lineNum);
                string strLineStateType = this.getStrLineStateType(ild.ilst);

                this.txtInfo.text = string.Format(this.strLine, strLineType, strLineNum, strLineStateType);
                this._line        = ild.lineNum;
            }