public void StartDialog(DialogEnum dialogenum, UnityEngine.Events.UnityAction afterbuttonclicked, string closebuttontext)
    {
        DialogDataHolder dialogDataHolder = GetDialogDataHolder(dialogenum);
        string           text             = GetLanguageText(dialogDataHolder);
        Sprite           sprite           = GetLanguageImage(dialogDataHolder);

        DialogBoxController.instance.ShowDialogBox(text, TEXT_DELAY, sprite, afterbuttonclicked, closebuttontext);
    }
    public void StartDialog(DialogEnum dialogenum)
    {
        DialogDataHolder dialogDataHolder = GetDialogDataHolder(dialogenum);
        string           text             = GetLanguageText(dialogDataHolder);
        Sprite           sprite           = GetLanguageImage(dialogDataHolder);

        try
        {
            DialogBoxController.instance.ShowDialogBox(text, TEXT_DELAY, sprite);
        }

        catch
        {
            Debug.LogError("something went wrong when looking up the key in the dictionary");
        }
    }
 Sprite GetLanguageImage(DialogDataHolder dialogdataholder)
 {
     return(dialogdataholder.imageENG);
 }
 string GetLanguageText(DialogDataHolder dialogdataholder)
 {
     return(dialogdataholder.englishText);
 }