Пример #1
0
    void Second_Dialogue_Finish()
    {
        //Handle RemoveListener
        if (DialogueList.Count > 1)
        {
            DialogueList.First().OnDialogueEnd.RemoveListener(Second_Dialogue_Finish);
        }
        OnPopUpInstruction.RemoveListener(Second_Dialogue_Finish);

        boardHandler.OnEndBoardInteraction.RemoveListener(teamAttack.AddToTeamAttackAmount);

        //ClearBoard
        boardHandler.IsClearBoard = true;
        boardHandler.SelectAllTiles();
        boardHandler.OnTileRelease(null);

        combatManager.OnCurrentRoundEnd.AddListener(ShowHidePopUps);
        boardHandler.OnTileMatchedRelease.AddListener(Second_Dialogue_CheckCondition);
    }