Exemple #1
0
 public void retireCrew()
 {
     assignedRepair = null;
     CrewController.instance.addAvailableCrew(this);
 }
Exemple #2
0
    public void Setup(RepairStage repairStage)
    {
        _repairStage = repairStage;

        switch (_repairStage.PickupType)
        {
        case (PickupType.WRENCH):
        {
            _mainImage.sprite = _repairStage.WrenchSprite;
            _text.text        = string.Empty;
            _amountImage.gameObject.SetActive(false);
            break;
        }

        case (PickupType.MOP):
        {
            _mainImage.sprite = _repairStage.MopSprite;
            _text.text        = string.Empty;
            _amountImage.gameObject.SetActive(false);
            break;
        }

        case (PickupType.ANTI_FLAMETHROWER):
        {
            _mainImage.sprite = _repairStage.AntiFlameSprite;
            _text.text        = string.Empty;
            _amountImage.gameObject.SetActive(false);
            break;
        }

        case (PickupType.CHIP):
        {
            _text.text        = "0/" + _repairStage.Amount;
            _mainImage.sprite = _repairStage.ChipSprite;
            break;
        }

        case (PickupType.GLUE):
        {
            _text.text        = "0/" + _repairStage.Amount;
            _mainImage.sprite = _repairStage.GlueSprite;
            break;
        }

        case (PickupType.METAL):
        {
            _text.text        = "0/" + _repairStage.Amount;
            _mainImage.sprite = _repairStage.MetalSprite;
            break;
        }

        case (PickupType.SCREW):
        {
            _text.text        = "0/" + _repairStage.Amount;
            _mainImage.sprite = _repairStage.ScrewSprite;
            break;
        }

        case (PickupType.TAPE):
        {
            _text.text        = "0/" + _repairStage.Amount;
            _mainImage.sprite = _repairStage.TapeSprite;
            break;
        }

        case (PickupType.WIRE):
        {
            _text.text        = "0/" + _repairStage.Amount;
            _mainImage.sprite = _repairStage.WireSprite;
            break;
        }

        default:
        {
            Debug.LogWarning("Currently not implemented!");
            break;
        }
        }
    }
Exemple #3
0
 public void assignRepair(RepairStage rp)
 {
     assignedRepair     = rp;
     assignmentPosition = assignedRepair.getPosition();
     goToAssignment();
 }