unity工具相关: DT Scenes ( Unity 2018.4.14+ ) 案例笔记

案例来源:

https://nodecanvas.paradoxnotion.com/downloads/

Example Scenes ( Unity 2018.4.14+ )

DialogueExample

粗略的看了一下。

核心是 DTree和UGUI Mono界面通过Action进行显示UI的驱动。

			DialogueTree.OnDialogueStarted       += OnDialogueStarted;
			DialogueTree.OnDialoguePaused        += OnDialoguePaused;
			DialogueTree.OnDialogueFinished      += OnDialogueFinished;
			DialogueTree.OnSubtitlesRequest      += OnSubtitlesRequest;
			DialogueTree.OnMultipleChoiceRequest += OnMultipleChoiceRequest;

 

同时需要绑定游戏对象IDialogueActor。传入event 额外数据内,进行agent的指定(才能进行正确的Action)。

posted @ 2022-04-06 19:46  sun_dust_shadow  阅读(59)  评论(0编辑  收藏  举报