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
957 B
29 lines
957 B
using System; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using AX.Network.Protocols; |
|
using UnityEngine; |
|
using AX.Serialization; |
|
|
|
//安全区已移动的重伤员(以及昏迷轻伤员)的数量 |
|
public class SAVEAREA_WOUNDER_NUM_SYNC : NetworkMessageBehaviour |
|
{ |
|
protected override void Execute(BinaryMessage message) |
|
{ |
|
InputHistory.Instance.RegisterInputHistory(message); |
|
|
|
var info = message.Body.Deserialize<SafeAreaWounderNumSyncData>(); |
|
// var sender = info.SendUserID; |
|
if (InputManager.Instance) |
|
{ |
|
if (CurrentUserInfo.mySelf.Id != info.SendUserID) |
|
{ |
|
if (info.gameObjID == GetComponent<BaseGameObjInfo>().gameObjID) |
|
{ |
|
GetComponent<SafeAreaMessage>().hasWounderNum = info.HasSaveNum; |
|
} |
|
Debug.Log(GetComponent<SafeAreaMessage>().HasWounderNum); |
|
} |
|
} |
|
} |
|
}
|
|
|