public void UpdatePanel(NVector pos) { //remove old action? if (_action != null) { SetActiveAction(null, false); } //can view? if (S.Fog() && !S.ActPlayer().fog.Visible(pos)) { unitUI.UpdatePanel(null); buildingUI.UpdatePanel(null); return; } unitUI.UpdatePanel(S.Unit().At(pos)); buildingUI.UpdatePanel(S.Building().At(pos)); }