Ejemplo n.º 1
0
 private void SelectEntity(EntityController entityToSelect)
 {
     player.selectedEntity = entityToSelect;
     entityToSelect.SetSelection(true);
 }
Ejemplo n.º 2
0
    private void ChangeSelection(EntityController otherEntity, PlayerController player)
    {
        if (otherEntity == this)
        {
            return;
        }

        SetSelection(false);
        if (player.selectedEntity != null)
        {
            player.selectedEntity.SetSelection(false);
        }

        player.selectedEntity = otherEntity;
        playingArea = HudController.GetPlayingArea();
        otherEntity.SetSelection(true);
    }