Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于UIManager 类 #35

Closed
justinlm opened this issue Dec 28, 2020 · 1 comment
Closed

关于UIManager 类 #35

justinlm opened this issue Dec 28, 2020 · 1 comment

Comments

@justinlm
Copy link

                        com.AsyncLoad(() =>
                        {
                            curTaskCount++;
                            if (com.Transform)
                            {
                                com.Transform.gameObject.SetActive(false);
                                com.Transform.SetParent(this.Bottom, false);
                            }
                            //推送缓存的数据
                            PushCaheData(index);
                            //回调
                            loadProcessAction?.Invoke(allCount, curTaskCount);
                        });

大佬 这断使用闭包的做法,会不会每次调用都有gc?

@yimengfan
Copy link
Owner

会,但是这些可以基本忽略。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants