public static void SendEndTaunt(long targetID) { BattleAction_EndTaunt battleAction_EndTaunt = new BattleAction_EndTaunt(); battleAction_EndTaunt.soldierId = targetID; EventDispatcher.BroadcastAsync <BattleAction_EndTaunt, bool>(BattleActionEvent.EndTaunt, battleAction_EndTaunt, false); }
public void EndTaunt(BattleAction_EndTaunt data, bool isServerData) { if (data.soldierId != this.owner.ID) { return; } this.owner.IsTaunt = false; }