网上演练贵港万达广场(人员密集)
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.

47 lines
1.2 KiB

4 years ago
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class BackToDisasterList : MonoBehaviour {
// Use this for initialization
void Start () {
GetComponent<Button>().onClick.AddListener(Back);
}
private void OnDestroy()
{
GetComponent<Button>().onClick.RemoveListener(Back);
}
private void Back()
{
if (GameSettings.othersSettings.mode == Mode.DisasterManagement)
{//创建灾情,灾情库编辑,灾情库查看的情况
if (GameSettings.othersSettings.isSelectedDisaster)
{//灾情库编辑,灾情库查看的情况
LoadPromptWin.Instance.LoadTipWindow("是否退出灾情库的编辑或查看?", Sure, null);
}
else
{//创建灾情的情况
LoadPromptWin.Instance.LoadTipWindow("是否退出创建灾情库?", Sure, null);
}
}
}
private void Sure()
{
EntitiesManager.Instance.Reset();
DisasterLibraryFile.Instance.Reset();
SceneManager.LoadScene("DisasterLibraryManage");
}
// Update is called once per frame
void Update () {
}
}