备份CatanBuilding瘦身独立工程
This commit is contained in:
23
Assets/Scripts/UI/Social/FishingLeaderboardPanel.cs
Normal file
23
Assets/Scripts/UI/Social/FishingLeaderboardPanel.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using GameCore;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class FishingLeaderboardPanel : MonoBehaviour
|
||||
{
|
||||
Button btn_close;
|
||||
SocialLeadboard leadboard;
|
||||
private void Awake()
|
||||
{
|
||||
btn_close = transform.Find("root/btn_close").GetComponent<Button>();
|
||||
leadboard = transform.Find("root/leaderboard").GetComponent<SocialLeadboard>();
|
||||
}
|
||||
private void Start()
|
||||
{
|
||||
btn_close.onClick.AddListener(() =>
|
||||
{
|
||||
UIManager.Instance.DestroyUI(UITypes.FishingLeaderboardPanel);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user