24 lines
631 B
C#
24 lines
631 B
C#
|
using Cal.DataTable;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Data;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
public class BackHomeGoodsEffect : GoodsEffect
|
|||
|
{
|
|||
|
public override string Init(Unit unit, GoodsBase goodsBase,bool isLock =false)
|
|||
|
{
|
|||
|
base.unit = unit;
|
|||
|
GoodsBase = goodsBase;
|
|||
|
Execute().Coroutine();
|
|||
|
return string.Empty;
|
|||
|
}
|
|||
|
public override async ETVoid Execute()
|
|||
|
{
|
|||
|
Game.EventSystem.Publish(new EventType.BackMainCity { unit = unit }).Coroutine();
|
|||
|
await ETTask.CompletedTask;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|