using cfg.ShowCfg; using Sirenix.OdinInspector; using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 扫荡演出组件 /// public sealed class SweepShowComponent : MonoBehaviour { #region 外部序列化字段 [LabelText("模型根节点")] [SerializeField] private Transform tsModelRoot; [LabelText("角色演出点根节点")] [SerializeField] private Transform tsCharacterShowPointRoot; [LabelText("Timeline节点")] [SerializeField] private GameObject goTimeline; #endregion /// /// 演出场景类型 /// private readonly E_ShowSceneType showSceneTyp = E_ShowSceneType.Sweep; #region 属性 /// /// 演出场景类型 /// public E_ShowSceneType ShowSceneTyp { get { return showSceneTyp; } } /// /// 模型根节点 /// public Transform TsModelRoot { get { return tsModelRoot; } } /// /// Timeline节点 /// public GameObject GoTimeline { get { return goTimeline; } } #endregion /// /// 获取角色演出点 /// /// public void GetCharacterShowPoint(ref List listTsCharacterShowPoint) { listTsCharacterShowPoint.Clear(); if (null == tsCharacterShowPointRoot) return; listTsCharacterShowPoint = new(tsCharacterShowPointRoot.childCount); for (int i = 0; i < tsCharacterShowPointRoot.childCount; ++i) { listTsCharacterShowPoint.Add(tsCharacterShowPointRoot.GetChild(i)); } } }