EventSystemPatch.cs 467 B

123456789101112131415161718192021222324
  1. using Blue;
  2. public class EventSystemPatch : SingletonMonobehaviour<EventSystemPatch>
  3. {
  4. private EventCommad mEventCommad = new EventCommad();
  5. /// <summary>
  6. /// 发送命令
  7. /// </summary>
  8. public void SendEvent(IEvent mEvent)
  9. {
  10. mEventCommad.mEvent = mEvent;
  11. this.SendEvent(mEvent);
  12. }
  13. }
  14. public class EventCommad : ICommand
  15. {
  16. public IEvent mEvent;
  17. public void OnExcute()
  18. {
  19. this.SendEvent(mEvent);
  20. }
  21. }