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

18 lines
472 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 CreateTransPointEvent : AEvent<CreateTransPoint>
{
public override async ETTask Run(CreateTransPoint args)
{
var scene = args.zoneScene;
scene.GetComponent<TransPointComponent>().Create(scene,args.targetSceneId, args.targetMaplayer, args.pos).Coroutine();
await ETTask.CompletedTask;
}
}
}