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

62 lines
1.8 KiB

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIViewReport : UIView
{
// 确定按钮
public CommonButton ButtonEnter;
// 车辆信息
public Text CarInfo;
// 出动人数
public Text MoverInfo;
// 营救人员
public Text SaverInfo;
// 累计用液量
public Text UseWaterInfo;
// 发送命令
public Text SendCommondInfo;
// 接收命令
public Text ReceiverCommandInfo;
public override UIViewType ViewType
{
get
{
return UIViewType.Normal;
}
}
private void OnEnable()
{
ButtonEnter.OnClicked += ButtonEnter_OnClicked;
}
private void OnDisable()
{
ButtonEnter.OnClicked -= ButtonEnter_OnClicked;
}
private void ButtonEnter_OnClicked(CommonButton obj)
{
Hide();
UIManager.ShowView<UIViewQuestionnaire>();
}
// 刷新
public override void Refresh()
{
base.Refresh();
// 获取数据
ReportDataMgr.GetDataSource();
// 设置数据
CarInfo.text = ReportDataMgr.GetAllTruckCountString();
MoverInfo.text = ReportDataMgr.GetAllFiremanCountString();
SaverInfo.text = ReportDataMgr.GetAllSaveCountString();
UseWaterInfo.text = ReportDataMgr.GetAllUserWaterString();
//SendCommondInfo.text = ReportDataMgr.GetAllSendCommandString();
//ReceiverCommandInfo.text = ReportDataMgr.GetAllReceiverCommandString();
//SendCommondInfo.text = ReportDataMgr.GetSendMsgCount();
//ReceiverCommandInfo.text = ReportDataMgr.GetReceiveMsgCount();
SendCommondInfo.text = SEND_COMMAND_SYNC.GetSendMyself().ToString();
ReceiverCommandInfo.text = SEND_COMMAND_SYNC.GetReceiveMyself().ToString();
}
}