コード例 #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);
        }
    }
コード例 #2
0
 public void SuscribeToOnFrameFinish(DelDialogFrame callback)
 {
     on_frame_finish += callback;
 }