mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
28 lines
851 B
C#
28 lines
851 B
C#
using UnityEngine;
|
|
using ProcedureOwner = TEngine.IFsm<TEngine.IProcedureManager>;
|
|
|
|
namespace GameMain
|
|
{
|
|
/// <summary>
|
|
/// 流程 => 闪屏。
|
|
/// </summary>
|
|
public class ProcedureSplash : ProcedureBase
|
|
{
|
|
public override bool UseNativeDialog => true;
|
|
|
|
protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
|
|
{
|
|
base.OnUpdate(procedureOwner, elapseSeconds, realElapseSeconds);
|
|
|
|
// 播放 Splash 动画
|
|
//Splash.Active(splashTime:3f);
|
|
//热更新阶段文本初始化
|
|
LoadText.Instance.InitConfigData(null);
|
|
//热更新UI初始化
|
|
UILoadMgr.Initialize();
|
|
//初始化资源包
|
|
ChangeState<ProcedureInitPackage>(procedureOwner);
|
|
}
|
|
}
|
|
}
|