退出按钮

This commit is contained in:
wulongxiao 2024-12-28 12:02:40 +08:00
parent c0fde0e31e
commit d1ed4650f6

View File

@ -2,17 +2,23 @@ using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
using System.Threading.Tasks;
using UnityEngine.SceneManagement;
public class Challeng_Evictory : Base
{
public GameObject Victory;
public GameObject failur;
public Button retrunBTN;
private void Awake()
{
Victory.SetActive(false);
failur.SetActive(false);
retrunBTN.onClick.AddListener(() => {
SceneManager.LoadScene(1);
});
}