Files
Main/Assets/Code/Logic/_Required/Timeline/TimelineSystem.cs

47 lines
1.1 KiB
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
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
{
/// <summary>
/// Timeline系统
/// </summary>
public class TimelineSystem
{
//预加载
//public void PreLoad(int id, MyAction<bool> callBack)
//{
// TimelineAssetsLoader.PreLoad(id, callBack);
//}
//当前已预加载的Timeline
private Core.Base.HashSet<int> PreLoadHash = new Core.Base.HashSet<int>();
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)
{
}
}
}