1
This commit is contained in:
39
unity/Assets/Script/UI/UIGameOver.cs
Normal file
39
unity/Assets/Script/UI/UIGameOver.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using Manager;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class UIGameOver : UIWindow
|
||||
{
|
||||
public Vector3 oldScal;
|
||||
//public GameObject ContinueButton;
|
||||
private void Awake()
|
||||
{
|
||||
oldScal = transform.localScale;
|
||||
|
||||
}
|
||||
|
||||
public void OnReset()//»Øµ½´óÌü
|
||||
{
|
||||
Debug.Log("UI");
|
||||
//SoundManager.Instance.PlaySound(SoundDefine.ButtonClick);
|
||||
|
||||
SenceManager.Instance.LoadScene(1);
|
||||
|
||||
SoundManager.Instance.PlayMusic(SoundDefine.Map_1Music);
|
||||
|
||||
PlayerInfo.Instance.Resrt();
|
||||
}
|
||||
|
||||
public void OnExit()
|
||||
{
|
||||
SenceManager.Instance.LoadScene(0);
|
||||
|
||||
PlayerInfo.Instance.info.currentMap = 1;
|
||||
SaveSystem.SaveDate(PlayerInfo.Instance.info.DatePath, PlayerInfo.Instance.info);
|
||||
|
||||
SoundManager.Instance.PlayMusic(SoundDefine.LoadingMusic);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user