网上演练
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.

28 lines
810 B

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