Skip to content

hanbim520/MessageCenter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity 环境下实现的消息中心模块

功能及特点

  • 消息类型通过枚举和静态类型字段定义。
  • 可编译期检查参数合法性。
  • 支持同步(SendMessage)和异步(PostMessage)发送消息。
  • SendMessage 不产生GC.Alloc。
  • 能够保证回调函数不被重复注册。
  • 消息数据通过参数传递,无需为每个消息定义消息体类型。
  • 支持移除指定对象的所有回调。
  • 支持不定参数类型的调用(性能较差且参数个数要与定义一致)。

About

Message Center for Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%