using System;
using System.Collections;
using AX.Network.Protocols;
using AX.Serialization;
using UnityEngine;
///
/// 接收服务器消息-演练结束
///
public class DRILL_OVER_SYNC : NetworkMessageBehaviour
{
protected override void Execute(BinaryMessage message)
{
bool isVictory = message.Body.Deserialize();
// 设置演练是否胜利
ReportDataMgr.IsVictory = isVictory;
StartCoroutine(ShowReportUI());
}
private IEnumerator ShowReportUI()
{
yield return new WaitForSeconds(3f);
// 指挥中心不显示角色报告
if (CurrentUserInfo.role!=Role.总队指挥中心 && CurrentUserInfo.role!=Role.支队指挥中心)
{
UIManager.ShowView();
}
}
}