You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
502 B
18 lines
502 B
3 years ago
|
using ET.EventType;
|
||
|
using FairyGUI;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace ET.Demo.ResourceView
|
||
|
{
|
||
|
public class AfterCreateResource_AddComponent : AEvent<EventType.AfterCreateResource>
|
||
|
{
|
||
|
protected override void Run(AfterCreateResource args)
|
||
|
{
|
||
|
var unit = args.Unit;
|
||
|
var resource = args.Resource;
|
||
|
var resourceViewComponent = resource.AddComponent<ResourceViewComponent>();
|
||
|
|
||
|
resourceViewComponent.CreateName().Coroutine();
|
||
|
}
|
||
|
}
|
||
|
}
|