2021-04-08 20:09:59 +08:00
|
|
|
|
|
|
|
|
|
using ET.EventType;
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if UNITY
|
2021-04-08 20:09:59 +08:00
|
|
|
|
using libx;
|
|
|
|
|
using UnityEngine;
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-08 20:09:59 +08:00
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
public class DownloadInitResourceFinishEvent: AEvent<DownloadInitResourceFinish>
|
|
|
|
|
{
|
|
|
|
|
public override async ETTask Run(DownloadInitResourceFinish args)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if UNITY
|
2021-04-08 20:09:59 +08:00
|
|
|
|
Game.Scene.RemoveComponent<Updater>();
|
|
|
|
|
Game.Scene.RemoveComponent<NetworkMonitor>();
|
|
|
|
|
Game.Scene.RemoveComponent<Downloader>();
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-08 20:09:59 +08:00
|
|
|
|
await Hotfix.instance.LoadHotfixAssembly();
|
|
|
|
|
|
|
|
|
|
Hotfix.instance.GotoHotfix();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|