CTT/Unity/Assets/Model/Game/Event/DownloadInitResourceFinish.cs

24 lines
487 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00

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