CTT/Unity/Assets/HotfixView/Event/RemoveTransPointEvent.cs

18 lines
416 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using ET.EventType;
using ET;
using System;
using System.Collections.Generic;
namespace ET
{
public class RemoveTransPointEvent : AEvent<RemoveTransPoint>
{
public override async ETTask Run(RemoveTransPoint args)
{
var component = args.zoneScene.GetComponent<TransPointComponent>();
component.RemoveAll();
await ETTask.CompletedTask;
}
}
}