using System.Collections; using System.Collections.Generic; using LitJson; using UnityEngine; using UnityEngine.UI; public class UserInfoItem : MonoBehaviour { public Text namet; public Text account; public Text dept; public Text position; public Text create_time; public Text admin; public void init(JsonData data) { namet.text = data["name"].ToString(); dept.text = data["dept"].ToString(); account.text = data["account"].ToString(); position.text = data["position"].ToString(); create_time.text = data["create_time"].ToString(); admin.text = data["admin"].ToString()=="1"?"超级管理员":"普通用户"; } }