using cfg.ShowCfg; using Sirenix.OdinInspector; using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// PVP结算演出组件 /// public sealed class PVPSettleShowComponent : MonoBehaviour { #region 外部序列化字段 [LabelText("模型根节点")] [SerializeField] private Transform tsModelRoot; [LabelText("玩家根节点")] [SerializeField] private Transform tsPlayerRoot; [LabelText("角色演出点根节点")] [SerializeField] private Transform tsCharacterShowPointRoot; [LabelText("载具演出点")] [SerializeField] private Transform tsVehicleShowPointRoot; [LabelText("Timeline节点")] [SerializeField] private GameObject goTimeline; #endregion /// /// 演出场景类型 /// private readonly E_ShowSceneType showSceneTyp = E_ShowSceneType.PVPSettle; #region 属性 /// /// 演出场景类型 /// public E_ShowSceneType ShowSceneTyp { get { return showSceneTyp; } } /// /// 模型根节点 /// public Transform TsModelRoot { get { return tsModelRoot; } } /// /// 玩家演出点 /// public Transform TsPlayerShowPoint { get { return tsPlayerRoot; } } /// /// 载具演出点 /// public Transform TsVehicleShowPoint { get { return tsVehicleShowPointRoot; } } /// /// 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)); } } }