Skip to content

消息系统

Hiram edited this page Apr 2, 2018 · 1 revision
  • 消息系统
        public void TestMethod()
        {
            Signal noparam = new Signal();
            noparam.Regist(Hanlder);
            noparam.Dispatch();
    
            Signal<int, string> withParam = new Signal<int, string>();
            withParam.Regist(HandlerWithParam);
            withParam.Dispatch(1, "hello");
        }
        void Hanlder()
        {
            string log = "execute";
        }
        void HandlerWithParam(int x, string y)
        {
            string log = "execute" + x + y;
        }

Component

Extensions

Core

  • 框架基础逻辑
  • 组件维护
  • Tick管理
  • 断言
  • Ticker组件
Clone this wiki locally