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

新版本添加了SingletonBehaviour之后,BehaviourSingleton这个类还有存在的必要么?但是SingletonBehaviour又没有统一去管理生命周期,为啥不合并一下功能放在一起呢 #83

Closed
Vorik-S opened this issue Jul 5, 2024 · 1 comment

Comments

@Vorik-S
Copy link

Vorik-S commented Jul 5, 2024

No description provided.

@ALEXTANGXIAO
Copy link
Owner

BehaviourSingleton为不继承MonoBehaviour的单例,但可以使用完整的Unity生命周期。SingletonBehaviour为继承Monobehavior的单例。酌情保留一份惯用的即可。

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