贺州人民医院电子沙盘
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.
 
 
 
 

38 lines
1.1 KiB

using AX.NetworkSystem;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Security.Cryptography;
using System.Xml;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class AddDisaster : MonoBehaviour
{
private Button addBtn;
// Use this for initialization
void Start()
{
addBtn = GetComponent<Button>();
addBtn.onClick.AddListener(AddNewDisaster);
}
void AddNewDisaster()
{
//获取灾情名称
ResourceLoadWindow.Instance.LoadInputWindow("请输入灾情名称", ConfirmNewDisaster, null, null);
}
private void ConfirmNewDisaster(string disasterName)
{
DisasterInfo msg = new DisasterInfo();
msg.Name = disasterName;
//向服务端申请新建灾情,成功后调用AddDisasterSucced
// NetworkManager.Default.SendAsync("CREATE_DISASTER_INFO_REQUEST", msg);
//单机版
msg.LastTime = DateTime.Now.ToString();
DisasterInfosManager.Instance.AddNewDisasterInfo(msg);
}
}