40 lines
901 B
C#
40 lines
901 B
C#
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);
|
|
|
|
}
|
|
}
|