public static void SendCloseRenderer(long targetID) { BattleAction_CloseRenderer battleAction_CloseRenderer = new BattleAction_CloseRenderer(); battleAction_CloseRenderer.soldierId = targetID; EventDispatcher.Broadcast <BattleAction_CloseRenderer, bool>(BattleActionEvent.CloseRenderer, battleAction_CloseRenderer, false); }
public void CloseRenderer(BattleAction_CloseRenderer data, bool isServerData) { if (data.soldierId != this.owner.ID) { return; } this.owner.IsCloseRenderer = true; }