private void HotfixComplete() { onHandleState(new ABHelper.VersionArgs(ABHelper.EVersionState.ABInit)); // 设置当前使用的版本 ABVersion.SetCursVersionNum(ABVersion.ServerVersionId); // 当前版本 onHandleState(new ABHelper.VersionArgs(ABHelper.EVersionState.ServerVersionId, ABVersion.CurVersionId.Id)); // Debug.Log("热更完成,下面进行ab初始化!!"); StartCoroutine(ABLoad.Instance.Init(() => { onHandleState(new ABHelper.VersionArgs(ABHelper.EVersionState.HotfixComplete)); })); }
public void Initialize(System.Action callback) { ABVersion.InitABVersion(); LauncherEngine.Instance.StartCoroutine(ABLoad.Instance.Init(callback)); }
public void InitHotter(System.Action callback) { ABVersion.InitABVersion(); StartCoroutine(ABLoad.Instance.Init(callback)); }