Skip to content

Unity App 生命周期结束,携程不会跑完的问题请解决Ftask #148

@NHIKMUS

Description

@NHIKMUS

FantasyObject 的OnDestory 中,OnDestroy 调用了OnDestroyAsync().Coroutine();

这样会导致,下面很多都可能执行不完。
private async FTask OnDestroyAsync()
{

        if (Scene != null)
        {
            await Scene.Close();
            Scene = null;
        }
        SerializerManager.Dispose();
        await AssemblyManifest.Dispose();
        _isInit = false; 
        // 设置当前程序已经在停止中
        ProgramDefine.IsAppRunning = false;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions