比如0.2秒调用一次 , 看到了TimerComponent 我该如何使用?
看demo。
没必要用Timer,一样的UpdateCallBack的, 直接加个UpdateSystem就行了。但是一般UI出现了需要Update的情况就说明设计上出现问题了。 class UIComponentUpdateSystem : UpdateSystem<UIComopnent>{}