public static void SendEndStatic(long targetID) { BattleAction_EndStatic battleAction_EndStatic = new BattleAction_EndStatic(); battleAction_EndStatic.soldierId = targetID; EventDispatcher.BroadcastAsync <BattleAction_EndStatic, bool>(BattleActionEvent.EndStatic, battleAction_EndStatic, false); }
public void EndStatic(BattleAction_EndStatic data, bool isServerData) { if (data.soldierId != this.owner.ID) { return; } this.owner.IsStatic = false; }