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.
 
 
 
 
 
 

16 lines
469 B

using ET.EventType;
namespace ET
{
public class AfterCreateBuilding_AddComponent : AEvent<EventType.AfterCreateBuilding>
{
protected override void Run(AfterCreateBuilding args)
{
var unit = args.Unit;
var building = args.Building;
var buildingViewComp = building.AddComponent<BuildingViewComponent>();
buildingViewComp.CreateName().Coroutine();
// update map info
}
}
}