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.
22 lines
621 B
22 lines
621 B
3 years ago
|
using ET.EventType;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
public class ResourceMonsterKilled_UpdateResource : AEvent<ResourceMonsterKilled>
|
||
|
{
|
||
|
protected override void Run(ResourceMonsterKilled args)
|
||
|
{
|
||
|
ResourcePointComponent resourceComponent = args.Unit.GetComponent<ResourcePointComponent>();
|
||
|
var res = resourceComponent.GetChild<ResourcePoint>(args.ResourceId);
|
||
|
|
||
|
if (res == null)
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
var resView = res.GetComponent<ResourceViewComponent>();
|
||
|
resView?.UpdateMonsterGroupInfo();
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|