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