// Auto Listen public void Test01() { var evt = new StructEventDefine() { Message = "Message 01" }; UEvent <StructEventDefine> .Dispatch(evt); }
// Auto Listen public void Test01() { var evt = new ClassEventDefine() { Message = "Message 01" }; UEvent <ClassEventDefine> .Dispatch(evt); }
// Manual Listen public void Test02() { UEvent <StructEventDefine> .Listen(Receive02); UEvent <StructEventDefine> .Dispatch(new StructEventDefine() { Message = "Message 02" }); UEvent <StructEventDefine> .Remove(Receive02); }
// Manual Listen public void Test02() { UEvent.Listen <ClassEventDefine>(Receive02); UEvent.Dispatch(new ClassEventDefine() { Message = "Message 02" }); UEvent.Remove <ClassEventDefine>(Receive02); }
// Manual Listen public void Test02() { UEvent.Listen(StringEventDefine.Event02, Receive02); UEvent.Dispatch(StringEventDefine.Event02, "Message 02"); UEvent.Remove(StringEventDefine.Event02, Receive02); }
// Auto Listen public void Test01() { UEvent.Dispatch(StringEventDefine.Event01, "Message 01"); }
public void Test() { UEvent.Dispatch(EventType005.Event01); UEvent.DispatchTo(EventType005.Event01, null); UEvent.DispatchGroup(EventType005.Event01, "Group01"); }