退出按钮
This commit is contained in:
parent
c0fde0e31e
commit
d1ed4650f6
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user