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.
20 lines
623 B
20 lines
623 B
3 years ago
|
using ET.EventType;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
public class CameraPosChange_UpdateBuildingNamePos : AEvent<EventType.CameraPosChange>
|
||
|
{
|
||
|
protected override void Run(CameraPosChange args)
|
||
|
{
|
||
|
var zoneScene = args.ZoneScene;
|
||
|
var unit = UnitHelper.GetMyUnitFromZoneScene(zoneScene);
|
||
|
|
||
|
var buildingComp = unit.GetComponent<BuildingComponent>();
|
||
|
foreach (var v in buildingComp.Children)
|
||
|
{
|
||
|
var buildingViewComp = v.Value.GetComponent<BuildingViewComponent>();
|
||
|
buildingViewComp.UpdateNamePos();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|