123456789101112131415161718192021222324 |
- using Blue;
- public class EventSystemPatch : SingletonMonobehaviour<EventSystemPatch>
- {
- private EventCommad mEventCommad = new EventCommad();
- /// <summary>
- /// 发送命令
- /// </summary>
- public void SendEvent(IEvent mEvent)
- {
- mEventCommad.mEvent = mEvent;
- this.SendEvent(mEvent);
- }
- }
- public class EventCommad : ICommand
- {
- public IEvent mEvent;
- public void OnExcute()
- {
- this.SendEvent(mEvent);
- }
- }
|