_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Battle_Royale/SucceePanel.cs

46 lines
1.1 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class SucceePanel : BasePanel
{
public Button ReturnBtn;
public GameObject moveObject;
public static SucceePanel instance;
public GameObject bg;
public TextMeshProUGUI textSnailEggs;//蜗牛蛋文本
public override void Start()
{
instance = this;
base.Start();
ReturnBtn.onClick.AddListener(OnClickReBtn);
}
public void OnClickReBtn()
{
HidePanel();
}
public override void HidePanel()
{
base.HidePanel();
//BossContro.instance.ReturnParent();
MaskContro.instance.SetMask(false);
//都返回原来的位置
}
public override void ShowPanel()
{
base.ShowPanel();
//foreach (GameObject item in bg.GetComponent<AllHouseContro>().bossobj)
//{
// item.GetComponent<BossContro>().ReturnParent();
//}
//FailPanel.instance.dic[room_id].GetComponent<BossContro>().ReturnParent();
}
}