Esempio n. 1
0
    // end deplacement only for IHM
    public void endDeplacementIHMOnly(int boardExitVP = 0)
    {
        transform.position = new Vector3(transform.position.x, transform.position.y, 0);
        changeSortingLayer("TokensOnBoard");
        gManager.displayCancelButton = false;
        cancelMovementPossible       = false;
        if (gManager.app.gameToLaunch.isTutorial)
        {
            displayActionPointsUsedFeedback(1);
        }
        //tokenPickedUp = false;
        if (moveTargets.Count > 0)
        {
            moveTargets.Clear();
        }

        if (!associatedCharacter.isRemovedFromGame())
        {
            Debug.Assert(associatedCharacter.endCellIsSafe(associatedCharacter.caseActuelle.GetComponent <CaseBehavior>()), "Invalid cell (suicide not allowed)");
        }

        StartUnselectAnimation();

        // Si le personage est sorti du plateau
        if (associatedCharacter.isRemovedFromGame())
        {
            StartCoroutine(sortiePlateau(gManager.VICTORY_ANIM_DURATION, boardExitVP));
        }

        actionDone();
    }