示例#1
0
        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));
            }));
        }
示例#2
0
 public void Initialize(System.Action callback)
 {
     ABVersion.InitABVersion();
     LauncherEngine.Instance.StartCoroutine(ABLoad.Instance.Init(callback));
 }
示例#3
0
 public void InitHotter(System.Action callback)
 {
     ABVersion.InitABVersion();
     StartCoroutine(ABLoad.Instance.Init(callback));
 }