From d1ed4650f623af61c316d83ee168d1dc9cff2a67 Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Sat, 28 Dec 2024 12:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/A_Fight/Challeng_Evictory/Challeng_Evictory.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meng_yao/Assets/script/A_Fight/Challeng_Evictory/Challeng_Evictory.cs b/meng_yao/Assets/script/A_Fight/Challeng_Evictory/Challeng_Evictory.cs index 42c2da6df..eb071ebb0 100644 --- a/meng_yao/Assets/script/A_Fight/Challeng_Evictory/Challeng_Evictory.cs +++ b/meng_yao/Assets/script/A_Fight/Challeng_Evictory/Challeng_Evictory.cs @@ -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); + }); }