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.
31 lines
913 B
31 lines
913 B
4 years ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using AX.NetworkSystem;
|
||
|
using AX.Serialization;
|
||
|
using AX.Network.Protocols;
|
||
|
using System;
|
||
|
|
||
|
public class FIREDEPLOY_SYNC : NetworkMessageBehaviour
|
||
|
{
|
||
|
public FireDepolySYNCInfo fireDepolySYNCInfo;
|
||
|
|
||
|
protected override void Execute(BinaryMessage message)
|
||
|
{
|
||
|
InputHistory.Instance.RegisterInputHistory(message);
|
||
|
|
||
|
var info = message.Body.Deserialize<FireDepolySYNCInfo>();
|
||
|
|
||
|
fireDepolySYNCInfo = new FireDepolySYNCInfo();
|
||
|
fireDepolySYNCInfo = info;
|
||
|
|
||
|
if (GameObject.Find("FightDeploy"))
|
||
|
{
|
||
|
if (!CurrentUserInfo.generalCommanding)
|
||
|
{//因总指挥自己也会收到,排出总指挥自己显示接收到作战部署的提示
|
||
|
GameObject.Find("FightDeploy").transform.Find("NumImage").gameObject.SetActive(true);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|