You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
656 B
23 lines
656 B
using UnityEngine; |
|
using UnityEngine.SceneManagement; |
|
using UnityEngine.UI; |
|
using AX.NetworkSystem; |
|
using UnityEngine.Events; |
|
public class BackToLastScene : MonoBehaviour { |
|
public void Back() |
|
{ |
|
MySceneManager.BackToLastScene(); |
|
} |
|
|
|
public void BackToLoginWin() |
|
{ |
|
GameObject TipWin = Instantiate(Resources.Load<GameObject>("UIPrefab/TipWindow")) as GameObject; |
|
string tips = "是否确定返回登录界面?"; |
|
TipWin.GetComponent<TipWindowManager>().SetWindow(tips, new UnityAction(SureBackLogin),null); |
|
} |
|
|
|
private void SureBackLogin() |
|
{ |
|
MySceneManager.BackToLastScene(); |
|
} |
|
}
|
|
|