protected override void Perform(ActionEvent evt, Player player, MapElementInfo info, NVector pos, ActionHolder holder) { //dying? if (holder.trigger == ActionEvent.NextRound) { info.Kill(); info.AddNoti(S.T("destroyDie", info.name), DataAction().Icon); return; } WindowPanelBuilder wpb = WindowPanelBuilder.Create(S.T("destroyKill", info.name)); wpb.panel.AddImageTextButton(S.T("destroyKill", info.name), info.Sprite(), (() => { info.Kill(); OnMapUI.Get().UpdatePanel(info.Pos()); wpb.Close(); })); wpb.AddClose(); wpb.Finish(); }