WX-Game1/Assets/Scripts/Component/BackpackComponent.cs

22 lines
382 B
C#

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