public override void OnRecovery() { this.Deactive(); base.OnRecovery(); followPath.Release(); followPath = null; anim.Release(); anim = null; }
/// <summary> /// 构建倒车转弯控制点 /// </summary> /// <param name="follow"></param> protected void ResetRacToReverse(FollowPathSuperMarketSimply follow) { var entity = follow.ownerEntity as EntityGroundParkingCar; var pathUnit = GroundParingSpacePathManager.GetInstance().GetPathUnit(entity.groundParkingGroupID, entity.groundParkingIdx); List <RightAnglesControllNode> backRac = null; if (!GroundParingSpacePathManager.IsExist(pathUnit.inPathBackRac)) { backRac = GroundParingSpacePathManager.GenBackRac(follow.ctrList); GroundParingSpacePathManager.GetInstance().AddPath(GroundParingSpacePathType.InPathBackRac, pathUnit, null, backRac); } follow.ctrList = pathUnit.inPathBackRac; }
/// <summary> /// 构建倒车路径 /// </summary> /// <param name="follow"></param> protected void ResetPathToReverse(FollowPathSuperMarketSimply follow) { var entity = follow.ownerEntity as EntityGroundParkingCar; var pathUnit = GroundParingSpacePathManager.GetInstance().GetPathUnit(entity.groundParkingGroupID, entity.groundParkingIdx); List <Vector3> reversePath = null; if (!GroundParingSpacePathManager.IsExist(pathUnit.inPathReverse)) { reversePath = GroundParingSpacePathManager.GenReversePath(follow.pathPosList); GroundParingSpacePathManager.GetInstance().AddPath( GroundParingSpacePathType.InPathReverse, pathUnit, reversePath, null); } follow.pathPosList = pathUnit.inPathReverse; }
public override void Release() { owner = null; base.Release(); }
public FSMFollowPathSuperMarketSimply(FollowPathSuperMarketSimply owner) { this.owner = owner; }