19 lines
461 B
C#
19 lines
461 B
C#
|
using ET.EventType;
|
|||
|
using ET;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
public class SetGameObjectActiveEvent : AEvent<SetGameObjectActive>
|
|||
|
{
|
|||
|
public override async ETTask Run(SetGameObjectActive args)
|
|||
|
{
|
|||
|
var unit = args.unit;
|
|||
|
var unitView = unit.GetComponent<UnitView>();
|
|||
|
unitView.gameObject.SetActive(args.isVisible);
|
|||
|
await ETTask.CompletedTask;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|