public static void SendEndFix(long targetID) { BattleAction_EndFix battleAction_EndFix = new BattleAction_EndFix(); battleAction_EndFix.soldierId = targetID; EventDispatcher.BroadcastAsync <BattleAction_EndFix, bool>(BattleActionEvent.EndFix, battleAction_EndFix, false); }
public void EndFixed(BattleAction_EndFix data, bool isServerData) { if (data.soldierId != this.owner.ID) { return; } this.owner.IsFixed = false; }