退出按钮
This commit is contained in:
parent
c0fde0e31e
commit
d1ed4650f6
@ -2,17 +2,23 @@ using UnityEngine;
|
|||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using DG.Tweening;
|
using DG.Tweening;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
public class Challeng_Evictory : Base
|
public class Challeng_Evictory : Base
|
||||||
{
|
{
|
||||||
public GameObject Victory;
|
public GameObject Victory;
|
||||||
public GameObject failur;
|
public GameObject failur;
|
||||||
|
|
||||||
|
public Button retrunBTN;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
|
|
||||||
Victory.SetActive(false);
|
Victory.SetActive(false);
|
||||||
failur.SetActive(false);
|
failur.SetActive(false);
|
||||||
|
retrunBTN.onClick.AddListener(() => {
|
||||||
|
SceneManager.LoadScene(1);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user