using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// /// 背包 /// public class BackpackComponent : MonoBehaviour { private void Awake() { this.GetComponent().onClick.AddListener(HideUI); } private void HideUI() { UIManager.Instance.ShowPage("背包"); } }