Beispiel #1
0
    public async Task InitInfo()
    {
        var task = Addressables.LoadAssetAsync <AllRoleData>("AllRoleInfo").Task;

        roleData = await task;
        Init();
    }
Beispiel #2
0
    private async Task LoadSomeConfigs()//拿到商店展示的英雄列表
    {
        var task = Addressables.LoadAssetAsync <MyRoleData>("MyRoleData").Task;

        rolesData = await task;

        var task01 = Addressables.LoadAssetAsync <AllRoleData>("AllRoleInfo").Task;

        allRoleData = await task01;
    }