34 lines
721 B
C#
34 lines
721 B
C#
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);
|
|
|
|
}
|
|
|
|
|
|
public void OnClickReBtn()
|
|
{
|
|
moveObject.GetComponent<PlayerMove>().ReturnStartPos();
|
|
HidePanel();
|
|
}
|
|
public override void HidePanel()
|
|
{
|
|
base.HidePanel();
|
|
PlayerMovePos.instance.IsReturn = true;
|
|
BossContro.instance.ReturnParent();
|
|
|
|
//¶¼·µ»ØÔÀ´µÄλÖÃ
|
|
}
|
|
}
|