public static void SendEndCloseRenderer(long targetID) { BattleAction_EndCloseRenderer battleAction_EndCloseRenderer = new BattleAction_EndCloseRenderer(); battleAction_EndCloseRenderer.soldierId = targetID; EventDispatcher.Broadcast <BattleAction_EndCloseRenderer, bool>(BattleActionEvent.EndCloseRenderer, battleAction_EndCloseRenderer, false); }
public void EndCloseRenderer(BattleAction_EndCloseRenderer data, bool isServerData) { if (data.soldierId != this.owner.ID) { return; } this.owner.IsCloseRenderer = false; }