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

22 lines
452 B
C#

using System.Collections;
using System.Collections.Generic;
using MotionFramework;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// 背包
/// </summary>
public class BackpackComponent : MonoBehaviour
{
private void Awake()
{
this.GetComponent<Button>().onClick.AddListener(HideUI);
}
private void HideUI()
{
Debug.Log("点击了");
MotionEngine.GetModule<JavaScriptCaller>().JumpToBag();
}
}