using System; using System.Collections.Generic; using Thousandto.Code.Center; using Thousandto.Code.Global; using Thousandto.Core.Asset; using Thousandto.Core.Base; using UnityEngine; using UnityEngine.Playables; namespace Thousandto.Code.Logic { /// /// Timeline系统 /// public class TimelineSystem { //预加载 //public void PreLoad(int id, MyAction callBack) //{ // TimelineAssetsLoader.PreLoad(id, callBack); //} //当前已预加载的Timeline private Core.Base.HashSet PreLoadHash = new Core.Base.HashSet(); public void Initialize() { GameCenter.RegFixEventHandle(LogicEventDefine.EID_EVENT_PLAYER_LEVEL_CHANGED, OnLocalPlayerLevelChange); } //根据配置获取当前需要预加载的Timeline, 例如60级有一个剧情,可以在59级预加载 private void OnLocalPlayerLevelChange(object param, object sender) { } public void Uninitialize() { } public void Update(float dt) { } } }