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.
37 lines
1.2 KiB
37 lines
1.2 KiB
4 years ago
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using AX.Network.Protocols;
|
||
|
using UnityEngine;
|
||
|
using AX.Serialization;
|
||
|
|
||
|
public class FIREROBOT_LAYWATERHOSE_SYNC : NetworkMessageBehaviour
|
||
|
{
|
||
|
protected override void Execute(BinaryMessage message)
|
||
|
{
|
||
|
InputHistory.Instance.RegisterInputHistory(message);
|
||
|
|
||
|
//var sender = message.ID;
|
||
|
var info = message.Body.Deserialize<LayerWaterHoseSyncData>();
|
||
|
if (InputManager.Instance)
|
||
|
{
|
||
|
if (CurrentUserInfo.mySelf.Id != info.SendUserID)
|
||
|
{
|
||
|
if (info.gameObjID == GetComponent<BaseGameObjInfo>().gameObjID)
|
||
|
{
|
||
|
if(info.IsBegin)
|
||
|
{
|
||
|
GetComponent<FireRobotLayWaterHose>().IsselfCurrent = false;
|
||
|
GetComponent<FireRobotLayWaterHose>().StartLay();
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
GetComponent<AgentController>().pathFindEnable = false;
|
||
|
GetComponent<FireRobotLayWaterHose>().JugeLenght();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|