egametang / ET

Unity3D Client And C# Server Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ET9 ClassEventSystem

LiShengYang-yiyi opened this issue · comments

public void Publish(T t) where T: struct 只提供了同步事件
希望有异步事件 且 有场景

参考EventSystem Publish / PublishAsync 本质上最后都是异步的
希望EntitySystem Publish / PublishAsync 与EventSystem 相同
针对同步消息改个其他方法名

这样就比较统一 发消息要给全局发消息就用 EventSystem 要给指定目标发消息就用 EntitySystem