using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GFGGame { public class LauncherController { public static void AfterVersion() { if (LocalCache.GetBool(LauncherConfig.LAST_LOGIN_IS_AGREE_KEY, false)) { StartGame(); } else { LauncherView.Instance.SetDesc(""); LauncherAgreeView.Instance.Open(() => { StartGame(); }); } } public static void StartGame() { LauncherView.Instance.SetDesc($"正在启动游戏..."); LauncherView.Instance.SetProgress(100, () => { HotUpdateCodeLoader.Instance.StartLoad(); }); } } }