using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class IDCodeSelect : MonoBehaviour { public WorkInfoTeam wInfoTeam; public Toggle[] Togs; public Text[] Texts; int b; public void Conform() { if (wInfoTeam.ArtCon.List_Encod != null) { for (b = 0; b < Togs.Length; b++)//遍历 { if (Togs[b].isOn) wInfoTeam.ExamRec.AddLog("勾选物资身份码" + Texts[b]); } } } }