using UnityEngine; using System.Collections; using AX.Network.Protocols; using System; using System.Collections.Generic; using AX.NetworkSystem; using AX.MessageSystem; using UnityEngine.UI; public class GET_DEPTS_REPLY : MessageBehaviour { public List Depts = new List(); //public Dropdown Dropdown_ZongD; protected override void Execute(IMessage message) { Depts = (List)message.Data; //List ZongDOptions = new List(); //ZongDOptions.Add(new Dropdown.OptionData("请选择总队")); //foreach (var item in Depts) //{ // if (item.Level == 1) // { // ZongDOptions.Add(new Dropdown.OptionData(item.Name)); // } //} //Dropdown_ZongD.options = ZongDOptions; } }