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.
29 lines
810 B
29 lines
810 B
5 years ago
|
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>();
|
||
|
}
|
||
|
}
|
||
|
}
|