mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
TE6 打飞机Demo
TE6 打飞机Demo
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using Launcher;
|
||||
using TEngine;
|
||||
using UnityEngine;
|
||||
using ProcedureOwner = TEngine.IFsm<TEngine.IProcedureModule>;
|
||||
|
||||
namespace Procedure
|
||||
{
|
||||
public class ProcedureDownloadOver : ProcedureBase
|
||||
{
|
||||
public override bool UseNativeDialog { get; }
|
||||
|
||||
private bool _needClearCache;
|
||||
|
||||
protected override void OnEnter(ProcedureOwner procedureOwner)
|
||||
{
|
||||
Log.Info("下载完成!!!");
|
||||
|
||||
LauncherMgr.Show(UIDefine.UILoadUpdate, $"下载完成...");
|
||||
|
||||
// 下载完成之后再保存本地版本。
|
||||
Utility.PlayerPrefs.SetString("GAME_VERSION", _resourceModule.PackageVersion);
|
||||
}
|
||||
|
||||
protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
|
||||
{
|
||||
if (_needClearCache)
|
||||
{
|
||||
ChangeState<ProcedureClearCache>(procedureOwner);
|
||||
}
|
||||
else
|
||||
{
|
||||
ChangeState<ProcedurePreload>(procedureOwner);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user