public void MakeTalk(ActorBase actor, AudioClip clip, string dialog, Transform target) { //gbl.DisplaySubtitle(dialog, actor); actor.TalkTo(clip, target, CutsceneStep.Action.TalkTo); }
/* void RunStep(int stepId) { foreach (CutsceneStep step in steps) { if (step.stepId == stepId) { DoStep (step); break; } } } */ public void MakeTalk(ActorBase actor, int dialog, Transform target) { if (dialog > 0) { //gbl.DisplaySubtitle(dialogs[World.langIdx][dialog].caption, actor); actor.TalkTo(dialogs[World.langIdx][dialog].clip, target, CutsceneStep.Action.TalkTo); } }