Пример #1
0
    private void AfterAction()
    {
        // Action
        Destroy(_attachedGameobject);
        _attachedGameobject = null;

        switch (position)
        {
        case "AileGauche":
            ally.RepairedPart(shipmap.GetLeftWing());
            shipmap.LeftWing(-1);
            break;

        case "AileDroite":
            ally.RepairedPart(shipmap.GetRightWing());
            shipmap.RightWing(-1);
            break;

        case "Avant":
            ally.RepairedPart(shipmap.GetFront());
            shipmap.Front(-1);
            break;

        case "Centre":
            ally.RepairedPart(shipmap.GetCenter());
            shipmap.Center(-1);
            break;

        case "Arriere":
            ally.RepairedPart(shipmap.GetBack());
            shipmap.Back(-1);
            break;
        }

        // Enable movement
        _droneBusy             = false;
        playerMovement.canMove = true;
        mouse.canMove          = true;
        selectTool.canMove     = true;

        textAction.text = "";
    }