using UnityEngine; using UnityEngine.UI; using DefaultNamespace.Component; public class BackpackPage : UIBase { public override string UIName => "BackpackPage"; public string strParam; void Start() { // closeButton.onClick.AddListener(() => // { // UIManager.Instance.HideUI(UIName); // }); } public override void OnShow(object param = null) { base.OnShow(param); // 可以读取 param 更新数据 //Debug.Log(JsonUtility.ToJson(param)); strParam = JsonUtility.ToJson(param); FriendChat friendChat = GetComponent(); if (friendChat != null) { friendChat.Init(); } } }