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

18 lines
388 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HomeMyFriendBtComponent : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
this.GetComponent<Button>().onClick.AddListener(delegate
{
UIManager.Instance.ShowPage("我的好友列表");
});
}
}