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.
30 lines
913 B
30 lines
913 B
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); |
|
} |
|
} |
|
} |
|
}
|
|
|