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.
19 lines
580 B
19 lines
580 B
3 years ago
|
|
||
|
using ET.EventType;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
public class AfterCreatePeople_AddComponent : AEvent<EventType.AfterCreatePeople>
|
||
|
{
|
||
|
protected override void Run(AfterCreatePeople args)
|
||
|
{
|
||
|
var unit = args.Unit;
|
||
|
var people = args.People;
|
||
|
var pvc = people.AddComponent<PeopleViewComponent>();
|
||
|
people.AddComponent<PeopleAnimatorComponent>();
|
||
|
PeopleViewHelper.CheckWork(people);
|
||
|
PeopleViewHelper.UpdateAnimatorByBehave(people);
|
||
|
people.AddComponent<PeopleAIComponent>();
|
||
|
}
|
||
|
}
|
||
|
}
|