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

27 lines
734 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using AX.Network.Protocols;
using AX.Serialization;
using System;
public class SET_LEAK2_SYNC : NetworkMessageBehaviour
{
protected override void Execute(BinaryMessage message)
{
InputHistory.Instance.RegisterInputHistory(message);
var info = message.Body.Deserialize<Leak2SyncData>();
if (InputManager.Instance)
{
if (CurrentUserInfo.mySelf.Id != info.SendUserID)
{
if (info.gameObjID==GetComponent<BaseGameObjInfo>().gameObjID)
{
GetComponent<Leak2Controller>().level = info.Level;
}
}
}
}
}