22 lines
533 B
C#
22 lines
533 B
C#
using ET;
|
|
using ET.EventType;
|
|
using UnityEngine;
|
|
|
|
namespace ET
|
|
{
|
|
public class BackMainCityEvent: AEvent<BackMainCity>
|
|
{
|
|
public override async ETTask Run(BackMainCity args)
|
|
{
|
|
M2C_BackMainCity ret = (M2C_BackMainCity)await SessionComponent.Instance.Session.Call(new C2M_BackMainCity() { });
|
|
if (!ret.Message.IsNullOrEmpty())
|
|
{
|
|
Game.EventSystem.Publish(new ET.EventType.ShowTipUI
|
|
{
|
|
tip = ret.Message
|
|
}).Coroutine();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
} |