using ET.EventType; namespace ET { public class PeopleMoveEnd_InCabin : AEvent { protected override void Run(PeopleMoveEnd args) { var people = args.People; var unit = UnitHelper.GetMyUnitFromZoneScene(people.ZoneScene()); int behave = people.GetBehaveType(); var targetId = people.GetTargetId(); if (behave == ConstBehaveType.BEHAVE_PREPARE_CABIN) { var cabin = unit.GetGrandChild(targetId); if (cabin != null) { CabinHelper.ArriveCabin(unit, people, cabin).Coroutine(); } } } } }