protected void SelectEntity(Selectable entityToSelect) { Player player = profile.Player; if (player == null) { return; } player.SelectedEntity = entityToSelect; entityToSelect.SetSelection(true); }
private void ChangeSelection(Selectable otherEntity, Player player) { if (otherEntity == this) { return; } SetSelection(false); if (player.SelectedEntity != null) { player.SelectedEntity.SetSelection(false); } player.SelectedEntity = otherEntity; playingArea = Hud.GetPlayingArea(); otherEntity.SetSelection(true); }