using System.Collections; using System.Collections.Generic; using UnityEngine; //public class Union //{ // public int id; // public string name; // public string iconName; // public string counts;//公会人数 //} public class TradeDes : MonoBehaviour { //公会属性 public int id; public string name; public string cover; public string counts;//公会人数 public int level; public string slogan; public int leaderId; public string leaderUserName; public string createTime; public string updateTime; //公会相关组件 // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public void SetInfo(UnionDataInPage body) { id = body.Id; name = body.Name; cover = body.Cover; level = body.Level; slogan = body.Slogan; leaderId = body.LeaderId; leaderUserName = body.LeaderUserName; createTime = body.CreateTime; updateTime = body.UpdateTime; } }