Пример #1
0
        //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
        }
Пример #2
0
 public void SetDialogState(DialogConfig dialogConfig, int state) //Method for change dialogState
 {
     dialogText.text = dialogConfig.dialogs[state].dialogText;    //UI change dialog text
 }
Пример #3
0
 public void SetDialogConfig(DialogConfig dialogConfig) //Set up config
 {
     dialogNameText.text = dialogConfig.name;           //Dialog name from dialog config
     SetDialogState(dialogConfig, 0);                   //Set dialog state
 }