using Cal.DataTable; using ET.EventType; using ET; using System; using System.Collections.Generic; using UnityEngine; namespace ET { public class OnCreateTransPointEvent : AEvent { public override async ETTask Run(OnCreateTransPoint args) { Unit unit = args.unit; Transform go = await ResourceViewHelper.LoadPrefabAsync(Sys_PrefabId.SceneTransPoint); unit.AddComponent(go.gameObject); MonoSceneTranPoint monoTransPoint = go.gameObject.GetOrAddComponent(); monoTransPoint.Id = unit.Id; monoTransPoint.zoneScene = args.zoneScene; await ETTask.CompletedTask; } } }