Skip to content
muxigame edited this page Nov 24, 2021 · 1 revision

剧情 Plot

$\textcolor{RedOrange}{GalForUnity.Model.Plot}$

GalForUnity.Model.Plot命名空间包含和剧情相关的类,包括剧情要求,剧情模型等等

它包含以下类

  • GalForUnity.Model.Plot.PlotModel
  • GalForUnity.Model.Plot.PlotRequire
  • GalForUnity.Model.Plot.PlotFlow
  • GalForUnity.Model.Plot.PlotItem
  • GalForUnity.Model.Plot.PlotAnimationSet$\textcolor{RedOrange}{(Preview)}$

PlotModel是剧情模型的实现类,管理着剧情的一切

image-20201229115752859

PlotRequire是剧情的要求,管理着剧情的要求

image-20201229120004699

PlotItem不能再Inspector界面直接挂在,对单个剧情项的操作实质上就是对PlotItem的操作

	[Serializable]
	public class PlotItem {
		[SerializeField]
		[Rename("姓名","指定要出场改剧情的角色,指定的名字需要在剧情流包含的出场角色中出现")]
		public string name;
		[Rename("说的话", "当前剧情项出场角色说的话")]
		public string speak;
		public List<AnimationClip> Animations => animationSet +new[]{_animationClip1,_animationClip2,_animationClip3,_animationClip4};

		[Rename("配音", "当前剧情项播放的背景音乐,一般建议使用配音,将背景音乐放置到场景模型SceneModel中")]
		public AudioClip audioClip;
		[Rename("背景","背景图片,如果未空,则保持上一项的背景,如果当前项是第一项,则显示场景图片")]
		public Sprite background;
		
		[Rename("动作集", "列表中的所有动画都会被播放,且动画相互覆盖,请保证动画没有重叠部分")]
		public PlotAnimationSet animationSet;

		public AnimationClip _animationClip1;
		public AnimationClip _animationClip2;
		public AnimationClip _animationClip3;
		public AnimationClip _animationClip4;
	}

PlotAnimationSet(Obsolete)是指剧情动画集,这个类已经被废弃

Clone this wiki locally