18 lines
472 B
C#
18 lines
472 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|