2024-11-13 02:03:11 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class FailPanel : BasePanel
|
|
|
|
|
{
|
|
|
|
|
public Button ReturnBtn;
|
|
|
|
|
public GameObject moveObject;
|
|
|
|
|
public static FailPanel instance;
|
|
|
|
|
public override void Start()
|
|
|
|
|
{
|
|
|
|
|
instance = this;
|
|
|
|
|
base.Start();
|
|
|
|
|
ReturnBtn.onClick.AddListener(OnClickReBtn);
|
2024-11-13 10:44:34 +08:00
|
|
|
|
|
2024-11-13 02:03:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void OnClickReBtn()
|
|
|
|
|
{
|
|
|
|
|
moveObject.GetComponent<PlayerMove>().ReturnStartPos();
|
|
|
|
|
HidePanel();
|
|
|
|
|
}
|
|
|
|
|
public override void HidePanel()
|
|
|
|
|
{
|
|
|
|
|
base.HidePanel();
|
|
|
|
|
PlayerMovePos.instance.IsReturn = true;
|
|
|
|
|
BossContro.instance.ReturnParent();
|
2024-11-13 18:01:18 +08:00
|
|
|
|
MaskContro.instance.SetMask(false);
|
2024-11-13 02:03:11 +08:00
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
|
|
|
|
|
}
|
2024-11-13 18:01:18 +08:00
|
|
|
|
public override void ShowPanel()
|
|
|
|
|
{
|
|
|
|
|
base.ShowPanel();
|
|
|
|
|
BossContro.instance.ReturnParent();
|
|
|
|
|
}
|
2024-11-13 02:03:11 +08:00
|
|
|
|
}
|