16 lines
369 B
C#
16 lines
369 B
C#
using ET.EventType;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ET
|
|
{
|
|
public class AddClickActionEvent : AEvent<AddClickAction>
|
|
{
|
|
public override async ETTask Run(AddClickAction args)
|
|
{
|
|
args.unit.AddComponent<ClickActionComponent>().onClick += args.action;
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
}
|