namespace ET { public class PeopleMoveEnd_Gather : AEvent { protected override void Run(EventType.PeopleMoveEnd args) { var people = args.People; var unit = UnitHelper.GetMyUnitFromZoneScene(people.ZoneScene()); var gatherComp = unit.GetComponent(); if (gatherComp == null) { return; } var gather = gatherComp.GetGatherByPeopleId(people.Id); if (gather == null) { return; } GatherHelper.StartGather(unit, gather.Id, people.Id).Coroutine(); } } }