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
786 B
27 lines
786 B
using System; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using AX.Network.Protocols; |
|
using UnityEngine; |
|
using AX.Serialization; |
|
|
|
/// <summary> |
|
/// 移动水泡技能同步 |
|
/// </summary> |
|
public class MOVE_WATERCANNON_SKILL_SYNC : NetworkMessageBehaviour |
|
{ |
|
protected override void Execute(BinaryMessage message) |
|
{ |
|
InputHistory.Instance.RegisterInputHistory(message); |
|
|
|
var info = message.Body.Deserialize<MoveWaterCannonSkillData>(); |
|
if (InputManager.Instance) |
|
{ |
|
if (CurrentUserInfo.mySelf.Id != info.SenderId) |
|
{ |
|
if (GetComponent<BaseGameObjInfo>().gameObjID == info.GameObjId) |
|
GetComponent<WaterConnonController>().skill = info.skill; |
|
} |
|
} |
|
} |
|
}
|
|
|