GameoverHanler.cs 721 B

12345678910111213141516171819202122232425262728
  1. using ET.Client;
  2. using UnityEngine;
  3. namespace ET
  4. {
  5. [Event]
  6. public class GameoverEventHandler : BEvent<EventType.GameoverEvent>
  7. {
  8. protected override async ETTask OnEvent(EventType.GameoverEvent args)
  9. {
  10. string title = "";
  11. string content = "";
  12. if(args.winForce == 1)
  13. {
  14. title = "守护成功";
  15. content = "感谢榜上大哥的钞能力,成功守护了家园";
  16. }
  17. else
  18. {
  19. title = "守护失败";
  20. content = "大哥不给力啊";
  21. }
  22. await UICommonDialog1.Show(title, content, () => {
  23. }, null);
  24. }
  25. }
  26. }