Esempio n. 1
0
    public void AddDialogText(TextMeshProUGUI text_to_use, string text, DelDialogFrame on_finish_callback = null)
    {
        if (text != "" && text_to_use != null)
        {
            text_to_use.text = "";

            DialogFrame df = new DialogFrame(text_to_use, text);

            if (on_finish_callback != null)
            {
                df.SuscribeToOnFrameFinish(on_finish_callback);
            }

            dialog_frames_to_add.Add(df);
        }
    }
 public void SuscribeToOnFrameFinish(DelDialogFrame callback)
 {
     on_frame_finish += callback;
 }