12345678910111213141516171819202122232425262728 |
- using ET.Client;
- using UnityEngine;
- namespace ET
- {
- [Event]
- public class GameoverEventHandler : BEvent<EventType.GameoverEvent>
- {
- protected override async ETTask OnEvent(EventType.GameoverEvent args)
- {
- string title = "";
- string content = "";
- if(args.winForce == 1)
- {
- title = "守护成功";
- content = "感谢榜上大哥的钞能力,成功守护了家园";
- }
- else
- {
- title = "守护失败";
- content = "大哥不给力啊";
- }
- await UICommonDialog1.Show(title, content, () => {
- }, null);
- }
- }
- }
|