//Show dialog menu method public void ShowDialogMenu(DialogConfig dialogConfig) { isPause = true; //set pause dialogGO.SetActive(true); //Show dialog screen gameobject dialogManager.SetDialogConfig(dialogConfig); //set config to dialog }
public void SetDialogState(DialogConfig dialogConfig, int state) //Method for change dialogState { dialogText.text = dialogConfig.dialogs[state].dialogText; //UI change dialog text }
public void SetDialogConfig(DialogConfig dialogConfig) //Set up config { dialogNameText.text = dialogConfig.name; //Dialog name from dialog config SetDialogState(dialogConfig, 0); //Set dialog state }